Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Update blescanmulti.py (#104)
Browse files Browse the repository at this point in the history
Add some logging messages
  • Loading branch information
jumping2000 authored and zewelor committed Sep 19, 2019
1 parent bb794cd commit fb52b64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workers/blescanmulti.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ def __init__(self, command_timeout, global_topic_prefix, **kwargs):
self.last_status = [
BleDeviceStatus(self, mac, name) for name, mac in self.devices.items()
]
_LOGGER.info("Adding %d %s devices", len(self.devices), repr(self))

def status_update(self):
_LOGGER.info("Updating %d %s devices", len(self.devices), repr(self))
devices = self.scanner.scan(
float(self.scan_timeout), passive=booleanize(self.scan_passive)
)
Expand Down

0 comments on commit fb52b64

Please sign in to comment.