Logger: homeassistant.components.cover
Source: custom_components/xiaomi_miot_raw/cover.py:143
Integration: 卷帘 (documentation, issues)
First occurred: 下午11:52:12 (2 occurrences)
Last logged: 下午11:52:12
Error adding entities for domain cover with platform xiaomi_miot_raw
Error while setting up xiaomi_miot_raw platform for cover
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/cover/__init__.py", line 192, in state
closed = self.is_closed
File "/config/custom_components/xiaomi_miot_raw/cover.py", line 143, in is_closed
return int(self._current_position) <= 3
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'