mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Black
This commit is contained in:
@@ -13,14 +13,15 @@ class MobileAppFlowHandler(config_entries.ConfigFlow):
|
||||
async def async_step_user(self, user_input=None):
|
||||
"""Handle a flow initialized by the user."""
|
||||
placeholders = {
|
||||
'apps_url':
|
||||
'https://www.home-assistant.io/components/mobile_app/#apps'
|
||||
"apps_url": "https://www.home-assistant.io/components/mobile_app/#apps"
|
||||
}
|
||||
|
||||
return self.async_abort(reason='install_app',
|
||||
description_placeholders=placeholders)
|
||||
return self.async_abort(
|
||||
reason="install_app", description_placeholders=placeholders
|
||||
)
|
||||
|
||||
async def async_step_registration(self, user_input=None):
|
||||
"""Handle a flow initialized during registration."""
|
||||
return self.async_create_entry(title=user_input[ATTR_DEVICE_NAME],
|
||||
data=user_input)
|
||||
return self.async_create_entry(
|
||||
title=user_input[ATTR_DEVICE_NAME], data=user_input
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user