错误日志
Error setting up entry Haier: 9ae5e3 for haier
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 575, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/haier/init.py", line 33, in async_setup_entry
await store.async_save(json.dumps(await client.get_digital_model(device.id), ensure_ascii=False))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/haier/core/client.py", line 87, in get_digital_model
return json.loads(content['detailInfo'][deviceId])['attributes']
前言
问题描述 显示失败
环境信息:
设备信息可在
.storage/haier/
目录下找到,文件格式为device_设备ID.json
,上传文件时可将文件名和文件内容中的设备ID
替换为任意值以保护个人隐私。设备ID可开启debug模式后可在
Device Info
部分的日志中找到。日志可在配置 > 系统 > 日志 > 加载完整日志
中查看。错误日志 Error setting up entry Haier: 9ae5e3 for haier Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 575, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/haier/init.py", line 33, in async_setup_entry await store.async_save(json.dumps(await client.get_digital_model(device.id), ensure_ascii=False)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/haier/core/client.py", line 87, in get_digital_model return json.loads(content['detailInfo'][deviceId])['attributes']