mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Improve error logging for unifi-ap (#132141)
This commit is contained in:
parent
bebbb87aa2
commit
c4ba15bb8c
@ -67,11 +67,11 @@ class UnifiDeviceScanner(DeviceScanner):
|
||||
"""Update the client info from AP."""
|
||||
try:
|
||||
self.clients = self.ap.get_clients()
|
||||
except UniFiAPConnectionException:
|
||||
_LOGGER.error("Failed to connect to accesspoint")
|
||||
except UniFiAPConnectionException as e:
|
||||
_LOGGER.error("Failed to connect to accesspoint: %s", str(e))
|
||||
return False
|
||||
except UniFiAPDataException:
|
||||
_LOGGER.error("Failed to get proper response from accesspoint")
|
||||
except UniFiAPDataException as e:
|
||||
_LOGGER.error("Failed to get proper response from accesspoint: %s", str(e))
|
||||
return False
|
||||
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user