|
发表于 2021-1-18 11:36:28
|
显示全部楼层
Logger: homeassistant.components.climate
Source: custom_components/ds_air/climate.py:159
Integration: 空调 (documentation, issues)
First occurred: 上午10:50:12 (2 occurrences)
Last logged: 上午10:50:12
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 316, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 531, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
sstate = self.state
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 173, 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' |
|