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
71.11k stars 29.79k forks source link

Xiaomi Fan repeatedly failing on coordinator_update due to incorrect property assumption #75746

Closed akshaya-a closed 2 years ago

akshaya-a commented 2 years ago

The problem

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 151, in _handle_refresh_interval await self._async_refresh(log_failures=True, scheduled=True) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh self.async_update_listeners() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 110, in async_update_listeners update_callback() File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/fan.py", line 1047, in _handle_coordinator_update self._percentage = self.coordinator.data.speed AttributeError: 'FanStatusZA5' object has no attribute 'speed'

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.7.5", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.5", "docker": true, "arch": "aarch64", "timezone": "America/Los_Angeles", "os_name": "Linux", "os_version": "5.15.45", "supervisor": "2022.07.0", "host_os": "Home Assistant OS 8.2", "docker_version": "20.10.14", "chassis": "embedded", "run_as_root": true }, "custom_components": { "mail_and_packages": { "version": "0.3.4-2", "requirements": [ "imageio>=2.9.0", "python-resize-image>=1.1.19" ] }, "hacs": { "version": "1.26.2", "requirements": [ "aiogithubapi>=22.2.4" ] }, "ecowitt": { "version": "0.7", "requirements": [ "pyecowitt==0.14" ] }, "adaptive_lighting": { "version": "1.0.14", "requirements": [] }, "sonos_cloud": { "version": "0.3.1", "requirements": [] } }, "integration_manifest": { "domain": "xiaomi_miio", "name": "Xiaomi Miio", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/xiaomi_miio", "requirements": [ "construct==2.10.56", "micloud==0.5", "python-miio==0.5.11" ], "codeowners": [ "@rytilahti", "@syssi", "@starkillerOG", "@bieniu" ], "zeroconf": [ "_miio._udp.local." ], "iot_class": "local_polling", "loggers": [ "micloud", "miio" ], "is_built_in": true }, "data": { "config_entry": { "entry_id": "60c4b3067162848e9b747d3f5dafe567", "version": 1, "domain": "xiaomi_miio", "title": "smart fan", "data": { "config_flow_device": "device", "host": "10.0.0.151", "token": "REDACTED", "model": "zhimi.fan.za5", "mac": "REDACTED", "cloud_username": "REDACTED", "cloud_password": "REDACTED", "cloud_country": "us" }, "options": {}, "pref_disable_new_entities": false, "pref_disable_polling": false, "source": "user", "unique_id": "REDACTED", "disabled_by": null }, "coordinator_data": "\" } }

What version of Home Assistant Core has the issue?

2022.7.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

xiaomi_miio

Link to integration documentation on our website

No response

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

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


xiaomi_miio documentation xiaomi_miio source (message by IssueLinks)

rytilahti commented 2 years ago

Duplicate of #73447