Improve type hints in mobile_app config flow (#124906)

This commit is contained in:
epenet 2024-08-30 11:24:34 +02:00 committed by GitHub
parent ffabd5d7db
commit 1906155c18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,9 @@ class MobileAppFlowHandler(ConfigFlow, domain=DOMAIN):
reason="install_app", description_placeholders=placeholders
)
async def async_step_registration(self, user_input=None):
async def async_step_registration(
self, user_input: dict[str, Any]
) -> ConfigFlowResult:
"""Handle a flow initialized during registration."""
if ATTR_DEVICE_ID in user_input:
# Unique ID is combi of app + device ID.