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

地暖实体不可用 #2377

Open
earlzz opened this issue Feb 20, 2025 · 0 comments
Open

地暖实体不可用 #2377

earlzz opened this issue Feb 20, 2025 · 0 comments

Comments

@earlzz
Copy link

earlzz commented Feb 20, 2025

Device model / 设备型号

suittc.airrtc.wk168

Component version / 插件版本

1.0.11

HA core version / HA版本

2025.2.4

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

实体不可以用

Image

Entity attributes / 实体属性

unavailable

Home Assistant Logs / 系统日志

2025-02-20 10:11:11.600 ERROR (MainThread) [custom_components.xiaomi_miot.core.device.suittc.airrtc.wk168] Unexpected error fetching xx:xx:xx:xx:xx:xx-01J6Q22VJGZ14ZWAxxxx8Q81SE-miot_status data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 380, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 281, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/device.py", line 530, in _update
result = await self.update_miot_status(mapping)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/device.py", line 873, 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 1386, 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 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/xiaomi_miot/core/device.py", line 1379, 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

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

1 participant