xiaomi_miot_raw
xiaomi_miot_raw copied to clipboard
米家新风机电加热开关失效
单击可以打开,但是很快图标回复到关闭状态,感觉ha没有抓取到新风机电热开关状态 再次点击打开,在开关没有自动回复的关闭状态时点击关闭,可以关闭新风机电加热开关,同时左下角提示 调用服务fan/turn off失败,nonetype object has no attribute 'add_job'
Logger: homeassistant.components.websocket_api.http.connection Source: helpers/entity.py:695 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 05:03:50 (19 occurrences) Last logged: 05:45:48
[140103248053200] 'NoneType' object has no attribute 'add_job'
[140103377294864] 'NoneType' object has no attribute 'add_job'
[140103272769904] 'NoneType' object has no attribute 'add_job'
[140103271753904] 'NoneType' object has no attribute 'add_job'
[140103242033280] 'NoneType' object has no attribute 'add_job'
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 192, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1636, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1673, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 671, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 949, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 708, in _handle_entity_call await result File "/config/custom_components/xiaomi_miot_raw/basic_dev_class.py", line 851, in async_turn_off self._parent_device.schedule_update_ha_state(force_refresh=True) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 695, in schedule_update_ha_state self.hass.add_job(self.async_update_ha_state(force_refresh)) AttributeError: 'NoneType' object has no attribute 'add_job'