Whenever I call Switchbot.update(), press(), or turn_on() it logs the following twice:
No advertisement data to update
NoneType: None
I traced it to here:
|
if not self._sb_adv_data: |
|
_LOGGER.exception("No advertisement data to update") |
|
return |
But I'm not sure of the fix. There is a failed check on advertising data but that seems intentional because of:
|
class SwitchbotDeviceOverrideStateDuringConnection(SwitchbotBaseDevice): |
|
"""Base Representation of a Switchbot Device. |
|
|
|
This base class ignores the advertisement data during connection and uses the |
|
data from the device instead. |
|
""" |
The return of None and Logger.exception() seem erroneous but maybe something higher up is the better fix.
Whenever I call Switchbot.update(), press(), or turn_on() it logs the following twice:
I traced it to here:
pySwitchbot/switchbot/devices/device.py
Lines 644 to 646 in 31e2381
But I'm not sure of the fix. There is a failed check on advertising data but that seems intentional because of:
pySwitchbot/switchbot/devices/device.py
Lines 831 to 836 in 31e2381
The return of None and Logger.exception() seem erroneous but maybe something higher up is the better fix.