Stringify mikrotik device_tracker name (#72788)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Erik Montnemery 2022-05-31 23:57:16 +02:00 committed by Paulus Schoutsen
parent 8606447848
commit e60dc1b503

View File

@ -102,7 +102,8 @@ class MikrotikHubTracker(ScannerEntity):
@property
def name(self) -> str:
"""Return the name of the client."""
return self.device.name
# Stringify to ensure we return a string
return str(self.device.name)
@property
def hostname(self) -> str: