From 3401edbeb480fa40fd2118621b34732ba0e3289a Mon Sep 17 00:00:00 2001 From: Michal Kochel Date: Fri, 25 Aug 2023 12:25:13 +0200 Subject: [PATCH] Update climate.py --- custom_components/programmable_thermostat/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/programmable_thermostat/climate.py b/custom_components/programmable_thermostat/climate.py index 77b7604..35c809d 100755 --- a/custom_components/programmable_thermostat/climate.py +++ b/custom_components/programmable_thermostat/climate.py @@ -73,7 +73,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): """Add ProgrammableThermostat entities from configuration.yaml.""" _LOGGER.info("Setup entity coming from configuration.yaml named: %s", config.get(CONF_NAME)) - await async_setup_reload_service(hass, DOMAIN, PLATFORM) + await async_setup_reload_service(hass, DOMAIN, [PLATFORM]) async_add_entities([ProgrammableThermostat(hass, config)]) async def async_setup_entry(hass, config_entry, async_add_devices): @@ -84,7 +84,7 @@ async def async_setup_entry(hass, config_entry, async_add_devices): else: result = config_entry.data _LOGGER.info("setup entity-config_entry_data=%s",result) - await async_setup_reload_service(hass, DOMAIN, PLATFORM) + await async_setup_reload_service(hass, DOMAIN, [PLATFORM]) async_add_devices([ProgrammableThermostat(hass, result)])