dmamontov / hass-miwifi

MiWiFi for Home Assistant
https://community.home-assistant.io/t/xiaomi-miwifi-component-for-tracking-devices-and-managing-routers/288734
Apache License 2.0
151 stars 14 forks source link

[BUG] Unexpected error fetching MiWifi updater data #224

Open emimor123 opened 2 months ago

emimor123 commented 2 months ago

Describe the bug Thousands of this error per day in log.

2024-06-12 23:12:33.462 ERROR (MainThread) [custom_components.miwifi.updater] Unexpected error fetching MiWifi updater data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 268, in _async_update_data return await self.update_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/miwifi/updater.py", line 290, in update await self._async_prepare(method, self.data) File "/config/custom_components/miwifi/updater.py", line 431, in _async_prepare await action(data) File "/config/custom_components/miwifi/updater.py", line 898, in _async_prepare_device_list self.add_device(device, action=action, integrations=integrations) File "/config/custom_components/miwifi/updater.py", line 1019, in add_device _device: dict[str, Any] = self._build_device(device, integrations) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/miwifi/updater.py", line 1082, in _build_device ip_attr: dict | None = device["ip"][0] if "ip" in device else None



**Please complete the following information:**
 - HASS version: 2024.6.2 ( same in other previous versions )
 - Component version 3.0.0
 - Router model AX3600
 - Router firmware version 3.0.22