Skip to content

Commit

Permalink
Merge pull request #67 from gavoja:master-1
Browse files Browse the repository at this point in the history
Fixed reload issue
  • Loading branch information
MapoDan authored Jan 9, 2024
2 parents 2979891 + 3401edb commit d81133e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/programmable_thermostat/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)])


Expand Down

0 comments on commit d81133e

Please sign in to comment.