有时候重启会报错,贴段报错日志:
2019-04-22 04:58:07 ERROR (MainThread) [homeassistant.components.media_player] mi_ac_partner: Error on device update!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 261, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 379, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/mi_ac_partner/media_player.py", line 123, in update
chs = channels["chs"]
KeyError: 'chs'
2019-04-22 04:58:10 ERROR (MainThread) [homeassistant.components.media_player] mi_ac_partner: Error on device update!
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 261, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 379, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/mi_ac_partner/media_player.py", line 123, in update
chs = channels["chs"]
KeyError: 'chs'
不报错的话,这句也要刷好多条记录,已经删除所有的收藏电台了:
WARNING (SyncWorker_4) [custom_components.mi_ac_partner.media_player] 空调伴侣(网关)中收藏的电台(代码:91)不在自动生成的电台总表中,太神奇了,应该是列表网站在更新,再等几个更新周期看看。
|