Open dshokouhi opened 4 years ago
@Danielhiversen could you look at this, since a lot of users are experiancing problems with this in HomeAssistant in the latest release.
Maybe just put a try except block
around it and on the OSError just use sock.bind(('', self.MULTICAST_PORT))
This can be closed, since the PR to fix this issue is merged. It will be in the upcomming release of HomeAssistant 0.113.4 that will be released on August 12 2020 (I think)
Home Assistant release with the issue (if applicable):
i was testing 0.112b0 on my WSL dev environment Last working Home Assistant release (if known): none
PyXiaomiGateway library version (if known): 0.12.4
Operating environment (Hass.io/Docker/Windows/etc.): windows subsystem for linux
Traceback (if applicable):
Description of the bug:
This is an odd issue that I was able to resolve on my own. I noticed that the code looks for the windows platform and it seems in this case it is not identifying it properly. If I modify line 127 to be identical to line 136 the error disappears and I am able to use the integration successfully.
More details can be found in this closed HA bug: https://github.com/home-assistant/core/issues/37073
I have tried the above with network interface set to
any
and also the IP address of the HA installation but the error still persists.