FrancisLab/hass-climate-scheduler

Switch Not Adding On Restart HASS 2023.6.X

Opened this issue · 0 comments

Saw what appears to be a similar python-related issue with a feedparser integration. Recently upgraded to 2023.6.1 which is when this issue started and no other significant changes were made, so this appears to be a 2023.6.X issue.

Log Error:

Logger: homeassistant.components.switch
Source: custom_components/climate_scheduler/switch.py:504
Integration: Switch (documentation, issues)
First occurred: 09:36:55 (1 occurrences)
Last logged: 09:36:55

Error adding entities for domain switch with platform climate_scheduler
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 471, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 749, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 849, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/climate_scheduler/switch.py", line 416, in async_added_to_hass
await self._async_update_profile(previous_attributes[ATTR_PROFILE])
File "/config/custom_components/climate_scheduler/switch.py", line 442, in _async_update_profile
await self.async_update_climate()
File "/config/custom_components/climate_scheduler/switch.py", line 504, in async_update_climate
await asyncio.wait(update_tasks)
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 415, in wait
raise TypeError("Passing coroutines is forbidden, use tasks explicitly.")
TypeError: Passing coroutines is forbidden, use tasks explicitly.