From 9ed7d826616c2243ef32cc0aabfe98f8b94a12b8 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Sun, 2 Jan 2022 17:16:47 +0100 Subject: [PATCH] Add type hint to reload_config in homeassistant scene (#63094) Co-authored-by: epenet --- homeassistant/components/homeassistant/scene.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/homeassistant/scene.py b/homeassistant/components/homeassistant/scene.py index e3a7ff51a4e..e78e33e9b29 100644 --- a/homeassistant/components/homeassistant/scene.py +++ b/homeassistant/components/homeassistant/scene.py @@ -173,17 +173,17 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info= # Store platform for later. platform = hass.data[DATA_PLATFORM] = entity_platform.async_get_current_platform() - async def reload_config(call): + async def reload_config(call: ServiceCall) -> None: """Reload the scene config.""" try: - conf = await conf_util.async_hass_config_yaml(hass) + config = await conf_util.async_hass_config_yaml(hass) except HomeAssistantError as err: _LOGGER.error(err) return integration = await async_get_integration(hass, SCENE_DOMAIN) - conf = await conf_util.async_process_component_config(hass, conf, integration) + conf = await conf_util.async_process_component_config(hass, config, integration) if not (conf and platform): return