-
-
Notifications
You must be signed in to change notification settings - Fork 713
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
易来浴霸灯频频在未知和可用状态间切换 #2250
Comments
同样问题, 一直在 unknown 和正常状态之间频繁切换。 |
al-one
added a commit
that referenced
this issue
Dec 30, 2024
尝试master分支。 wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash - |
al-one
added a commit
that referenced
this issue
Dec 30, 2024
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Device model / 设备型号
yeelink.bhf_light.v6
Component version / 插件版本
1.0.7
HA core version / HA版本
2024.12.5
Integrated mode / 集成方式
Automatic (自动模式)
The problem / 问题详情
易来浴霸灯频频在可用和未知状态间切换,大概几十秒一次,我不太确定抓的日志是不是相关的,如果需要补充信息请告诉我,谢谢
Entity attributes / 实体属性
Home Assistant Logs / 系统日志
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 513, in _update
result = await self.update_miot_status(mapping)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/device.py", line 848, in update_miot_status
res = await self.local.async_get_properties_for_mapping(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/config/custom_components/xiaomi_miot/core/device.py", line 1346, in async_get_properties_for_mapping
return await self.hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/xiaomi_miot/core/device.py", line 1339, in get_properties_for_mapping
return self.get_properties(
~~~~~~~~~~~~~~~~~~~^
properties,
^^^^^^^^^^^
property_getter='get_properties',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
max_properties=max_properties,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/miio/device.py", line 240, in get_properties
values.extend(self.send(property_getter, _props[:max_properties]))
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/miio/device.py", line 107, in send
return self._protocol.send(
~~~~~~~~~~~~~~~~~~~^
command, parameters, retry_count, extra_parameters=extra_parameters
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/miio/miioprotocol.py", line 202, in send
self.__id = payload["id"]
~~~~~~~^^^^^^
TypeError: byte indices must be integers or slices, not str
The text was updated successfully, but these errors were encountered: