Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'get_max_properties' #2115

Open
dwd1 opened this issue Dec 21, 2024 · 1 comment
Open

Comments

@dwd1
Copy link

dwd1 commented Dec 21, 2024

The integration doesn't work if I have Connection mode for device: Local.
It can work if I have Connection mode for device: Automatic but I prefer local only.
Please fix it!
Thank you!

Logger: custom_components.xiaomi_miot.core.device.miaomiaoce.sensor_ht.o2
Source: helpers/update_coordinator.py:379
integration: Xiaomi Miot Auto (documentation, issues)
First occurred: 01:09:08 (5 occurrences)
Last logged: 01:10:10
Unexpected error fetching a1:b2:c3:d4:e5:f6-5541c7b5a06c39b267a5efae6628e003 -miot_status data

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 280, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/device.py", line 493, in _update
result = await self.update_miot_status(mapping)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/device.py", line 803, in update_miot_status
max_properties = self.local.get_max_properties(mapping)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_max_properties'

@Matt7C2
Copy link

Matt7C2 commented Dec 21, 2024

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants