Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Not Adding On Restart HASS 2023.6.X #11

Open
afsabresfan opened this issue Jun 15, 2023 · 0 comments
Open

Switch Not Adding On Restart HASS 2023.6.X #11

afsabresfan opened this issue Jun 15, 2023 · 0 comments

Comments

@afsabresfan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant