-
Notifications
You must be signed in to change notification settings - Fork 170
Description
问题描述
海尔热水器里的功能只有开关可以使用,其他都不可以使用,显示集成“haier”不再提供此实体
环境信息:
- Homeassistant版本: [2025.5.1]
设备信息
Device 540853855CD7
错误日志
2025-05-17 22:35:30.618 WARNING (MainThread) [custom_components.haier.core.client] Device 540853648D0B cache is invalid
2025-05-17 22:35:30.629 ERROR (MainThread) [custom_components.haier.core.device] Haier device 540853648D0B init failed
Traceback (most recent call last):
File "/config/custom_components/haier/core/device.py", line 58, in async_init
attributes = await self._client.get_digital_model_from_cache(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/haier/core/client.py", line 179, in get_digital_model_from_cache
return cache['attributes']
~~~~~^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
2025-05-17 22:35:30.644 WARNING (MainThread) [custom_components.haier.core.client] Device 540853855CD7 cache is invalid
2025-05-17 22:35:30.646 ERROR (MainThread) [custom_components.haier.core.device] Haier device 540853855CD7 init failed
Traceback (most recent call last):
File "/config/custom_components/haier/core/device.py", line 58, in async_init
attributes = await self._client.get_digital_model_from_cache(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/haier/core/client.py", line 179, in get_digital_model_from_cache
return cache['attributes']
~~~~~^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
2025-05-17 22:35:30.660 WARNING (MainThread) [custom_components.haier.core.client] Device 540853A617A4 cache is invalid
2025-05-17 22:35:30.671 ERROR (MainThread) [custom_components.haier.core.device] Haier device 540853A617A4 init failed
Traceback (most recent call last):
File "/config/custom_components/haier/core/device.py", line 58, in async_init
attributes = await self._client.get_digital_model_from_cache(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/haier/core/client.py", line 179, in get_digital_model_from_cache
return cache['attributes']
~~~~~^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'