I regularly disable Wifi on some of my access points (via ubus). When HA restarts and Wifi is disabled the extension fails to reconnect those access points. I have to manually reenable Wifi to reconnect them.
Error:
Traceback (most recent call last):
File "/config/custom_components/openwrt/coordinator.py", line 297, in async_update_data
wireless_config = await self.discover_wireless()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/openwrt/coordinator.py", line 57, in discover_wireless
conf = dict(ifname=iface['ifname'],
~~~~~^^^^^^^^^^
KeyError: 'ifname'
I regularly disable Wifi on some of my access points (via ubus). When HA restarts and Wifi is disabled the extension fails to reconnect those access points. I have to manually reenable Wifi to reconnect them.
Error: