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