2018-05-18 11:01:33 ERROR (MainThread) [homeassistant.components.sensor] mi_composition_scale: Error on device update!
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 244, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/app/homeassistant/helpers/entity.py", line 325, in async_device_update
yield from self.async_update()
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 212, in coro
res = func(*args, **kw)
File "/config/custom_components/sensor/mi_composition_scale.py", line 95, in async_update
devices = scanner.scan(5.0)
File "/usr/local/lib/python3.6/site-packages/bluepy/btle.py", line 679, in scan
self.start(passive=passive)
File "/usr/local/lib/python3.6/site-packages/bluepy/btle.py", line 617, in start
self._mgmtCmd("le on")
File "/usr/local/lib/python3.6/site-packages/bluepy/btle.py", line 272, in _mgmtCmd
rsp = self._waitResp('mgmt')
File "/usr/local/lib/python3.6/site-packages/bluepy/btle.py", line 330, in _waitResp
raise BTLEException(BTLEException.MGMT_ERROR, "Management not available (permissions problem?)")
bluepy.btle.BTLEException: Management not available (permissions problem?)
mi_composition_scale: Error on device update!
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 244, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/app/homeassistant/helpers/entity.py", line 325, in async_device_update
yield from self.async_update()
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 212, in coro
res = func(*args, **kw)
File "/config/custom_components/sensor/mi_composition_scale.py", line 95, in async_update
devices = scanner.scan(5.0)
File "/usr/local/lib/python3.6/site-packages/bluepy/btle.py", line 681, in scan
self.stop()
File "/usr/local/lib/python3.6/site-packages/bluepy/btle.py", line 630, in stop
self._mgmtCmd(self._cmd()+"end")
File "/usr/local/lib/python3.6/site-packages/bluepy/btle.py", line 272, in _mgmtCmd
rsp = self._waitResp('mgmt')
File "/usr/local/lib/python3.6/site-packages/bluepy/btle.py", line 337, in _waitResp
raise BTLEException(BTLEException.INTERNAL_ERROR, "Unexpected response (%s)" % respType)
bluepy.btle.BTLEException: Unexpected response (stat)