Skip to content

Commit

Permalink
Merge pull request #85 from atxbyea/python311
Browse files Browse the repository at this point in the history
Python311
  • Loading branch information
atxbyea authored Jan 12, 2024
2 parents ebe2d66 + 1ab7a7b commit 07e8cea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/climate_ip/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ async def async_service_handler(service):
if not hasattr(device, "async_set_custom_operation"):
continue
await getattr(device, "async_set_custom_operation")(**params)
update_tasks.append(device.async_update_ha_state(True))
update_tasks.append(asyncio.create_task(device.async_update_ha_state(True)))

if update_tasks:
await asyncio.wait(update_tasks, loop=hass.loop)
await asyncio.wait(update_tasks)

service_schema = (
device_controller.service_schema_map
Expand Down Expand Up @@ -258,7 +258,7 @@ def unique_id(self):
if self._unique_id is None:
name_value = self._name
_LOGGER.info("About to set unique id {}".format(name_value))
self._unique_id = "climate_ip_" + name_value
self._unique_id = "climate_ip_" + str(name_value)

_LOGGER.info("Returning unique id of {}".format(self._unique_id))
return self._unique_id
Expand Down

0 comments on commit 07e8cea

Please sign in to comment.