home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.68k stars 30.8k forks source link

WIZ integration fails #78456

Closed larronni closed 2 years ago

larronni commented 2 years ago

The problem

Logger: homeassistant.config_entries Source: components/wiz/init.py:70 First occurred: 13:01:02 (21 occurrences) Last logged: 13:02:13

Error setting up entry Stuekrok03 for wiz Error setting up entry Ugle skap for wiz Error setting up entry TV2 for wiz Error setting up entry TV1 for wiz Error setting up entry Bad02 for wiz Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/wiz/init.py", line 70, in async_setup_entry scenes = await bulb.getSupportedScenes() File "/usr/local/lib/python3.10/site-packages/pywizlight/bulb.py", line 624, in getSupportedScenes await self.get_bulbtype() File "/usr/local/lib/python3.10/site-packages/pywizlight/bulb.py", line 567, in get_bulbtype bulb_config = await self.getBulbConfig() File "/usr/local/lib/python3.10/site-packages/pywizlight/bulb.py", line 711, in getBulbConfig resp = await self.send({"method": "getSystemConfig", "params": {}}) File "/usr/local/lib/python3.10/site-packages/pywizlight/bulb.py", line 747, in send await self._ensure_connection() File "/usr/local/lib/python3.10/site-packages/pywizlight/bulb.py", line 480, in _ensure_connection transport_proto = await self.loop.create_datagram_endpoint( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1304, in create_datagram_endpoint infos = await self._ensure_resolved( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1399, in _ensure_resolved info = _ipaddr_info(host, port, family, type, proto, *address[2:]) File "/usr/local/lib/python3.10/asyncio/base_events.py", line 142, in _ipaddr_info if '%' in host: TypeError: argument of type 'IPv4Address' is not iterable

What version of Home Assistant Core has the issue?

2022.9.4

What was the last working version of Home Assistant Core?

2022.9.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

WIZ

Link to integration documentation on our website

https://www.home-assistant.io/integrations/wiz/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

wiz documentation wiz source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @sbidy, mind taking a look at this issue as it has been labeled with an integration (wiz) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

larronni commented 2 years ago

The solution was to remove all devices and add them back again... Not the best approach, but now there is no error in the logs and it works...