mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Fix false log message on CAPsMAN only devices (#18687)
* Fix false log message on CAPsMAN only devices False debug log message appeared on CAPsMAN only devices without physichal wireless interfaces. This fix eliminates them. * Fixed indentation to pass flake8 test
This commit is contained in:
parent
5a5cbe4e72
commit
cd773455f0
@ -128,7 +128,8 @@ class MikrotikScanner(DeviceScanner):
|
||||
librouteros.exceptions.ConnectionError):
|
||||
self.wireless_exist = False
|
||||
|
||||
if not self.wireless_exist or self.method == 'ip':
|
||||
if not self.wireless_exist and not self.capsman_exist \
|
||||
or self.method == 'ip':
|
||||
_LOGGER.info(
|
||||
"Mikrotik %s: Wireless adapters not found. Try to "
|
||||
"use DHCP lease table as presence tracker source. "
|
||||
|
Loading…
x
Reference in New Issue
Block a user