Skip to content

海尔热水器除开关外其他功能无法使用 #212

@Skura0810

Description

@Skura0810

问题描述
海尔热水器里的功能只有开关可以使用,其他都不可以使用,显示集成“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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions