You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.
Installed the current wiz_light on Home Assistant 2021.11.1 as described in the readme.md
After adding some light i see in the home-assistant.log:
2021-11-06 16:21:37 ERROR (MainThread) [homeassistant.helpers.entity] Update for light.wiz_bulb_st64_filament fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 468, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 658, in async_device_update
raise exc
File "/config/custom_components/wiz_light/light.py", line 256, in async_update
await self.update_scene_list()
File "/config/custom_components/wiz_light/light.py", line 395, in update_scene_list
self._scenes = list(_value.values())
AttributeError: 'list' object has no attribute 'values'
This caused some light to be disabled or not show up in the integration overview page like described in
"The bulb can not be connected via WiZ Light integration." #194
(dont know if that is caused by the same issue)
I changed /config/custom_components/wiz_light/light.py
async def update_scene_list(self):
"""Update the scene list."""
_value = await self._light.getSupportedScenes()
self._scenes = list(_value.values())
to
async def update_scene_list(self):
"""Update the scene list."""
self._scenes = list()
Which fixed it for me, as i do not use Scenes.
But to support scenes a better fix should be made.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Thanks for working on this integration :-)
Installed the current wiz_light on Home Assistant 2021.11.1 as described in the readme.md
After adding some light i see in the home-assistant.log:
This caused some light to be disabled or not show up in the integration overview page like described in
"The bulb can not be connected via WiZ Light integration." #194
(dont know if that is caused by the same issue)
I changed /config/custom_components/wiz_light/light.py
to
Which fixed it for me, as i do not use Scenes.
But to support scenes a better fix should be made.
Regards,
Beta Was this translation helpful? Give feedback.
All reactions