Open skoviss opened 3 years ago
自行安裝整合產生錯誤。
Logger: homeassistant.helpers.entity Source: custom_components/switchbot-curtain/cover.py:164 Integration: switchbot-curtain First occurred: 05:33:10 (1247 occurrences) Last logged: 10:47:43
Update for cover.switchbot_curtain fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 438, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 625, in async_device_update raise exc File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/switchbot-curtain/cover.py", line 164, in update self._device.update() File "/usr/local/lib/python3.9/site-packages/switchbot/init.py", line 189, in update devices = bluepy.btle.Scanner().scan(scan_timeout) File "/usr/local/lib/python3.9/site-packages/bluepy/btle.py", line 852, in scan self.start(passive=passive) File "/usr/local/lib/python3.9/site-packages/bluepy/btle.py", line 800, in start self._mgmtCmd(self._cmd()) File "/usr/local/lib/python3.9/site-packages/bluepy/btle.py", line 312, in _mgmtCmd raise BTLEManagementError("Failed to execute management command '%s'" % (cmd), rsp) bluepy.btle.BTLEManagementError: Failed to execute management command 'scan'
Same
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 446, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 641, in async_device_update raise exc File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/switchbot-curtain/cover.py", line 164, in update self._device.update() File "/usr/local/lib/python3.9/site-packages/switchbot/init.py", line 189, in update File "/usr/local/lib/python3.9/site-packages/bluepy/btle.py", line 853, in scan self.process(timeout) File "/usr/local/lib/python3.9/site-packages/bluepy/btle.py", line 840, in process isNewData = dev._update(resp) File "/usr/local/lib/python3.9/site-packages/bluepy/btle.py", line 696, in _update raise BTLEInternalError("Address type changed during scan, for address %s" % self.addr) bluepy.btle.BTLEInternalError: Address type changed during scan, for address xx:xx:xx:xx:xx:xx