- 积分
- 280
- 金钱
- 243
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 280
- 金钱
- 243
- HASS币
- 0
|
发表于 2021-5-13 16:06:33
|
显示全部楼层
请问这个错误怎么处理啊?
Logger: homeassistant.components.climate
Source: custom_components/ds_air/climate.py:159
Integration: 空调 (documentation, issues)
First occurred: 下午4:04:21 (2 occurrences)
Last logged: 下午4:04:21
Error adding entities for domain climate with platform ds_air
Error while setting up ds_air platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 558, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 581, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 334, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 368, in _async_write_ha_state
state = self._stringify_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 340, in _stringify_state
state = self.state
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 176, in state
return self.hvac_mode
File "/config/custom_components/ds_air/climate.py", line 159, in hvac_mode
return EnumControl.get_mode_name(self._device_info.status.mode.value)
AttributeError: 'NoneType' object has no attribute 'value'
|
|