solaar: don't ping device just to get logging information
This commit is contained in:
parent
da1cb53c1b
commit
37aa0963da
|
@ -204,11 +204,7 @@ class SolaarListener(_listener.EventsListener):
|
||||||
# Apply settings every time the device connects
|
# Apply settings every time the device connects
|
||||||
if n.sub_id == 0x41:
|
if n.sub_id == 0x41:
|
||||||
if logger.isEnabledFor(logging.INFO):
|
if logger.isEnabledFor(logging.INFO):
|
||||||
try:
|
logger.info("connection %s for device wpid %s kind %s serial %s", n, dev.wpid, dev.kind, dev._serial)
|
||||||
dev.ping()
|
|
||||||
logger.info("connection %s for %r", n, dev)
|
|
||||||
except Exception:
|
|
||||||
logger.info("connection %s for unknown device, number %s", n, n.devnumber)
|
|
||||||
# If there are saved configs, bring the device's settings up-to-date.
|
# If there are saved configs, bring the device's settings up-to-date.
|
||||||
# They will be applied when the device is marked as online.
|
# They will be applied when the device is marked as online.
|
||||||
configuration.attach_to(dev)
|
configuration.attach_to(dev)
|
||||||
|
|
Loading…
Reference in New Issue