Stringify mikrotik device_tracker name (#72788)
Co-authored-by: J. Nick Koston <nick@koston.org>pull/72805/head
parent
3258d572b0
commit
02068a2013
|
@ -102,7 +102,8 @@ class MikrotikHubTracker(ScannerEntity):
|
||||||
@property
|
@property
|
||||||
def name(self) -> str:
|
def name(self) -> str:
|
||||||
"""Return the name of the client."""
|
"""Return the name of the client."""
|
||||||
return self.device.name
|
# Stringify to ensure we return a string
|
||||||
|
return str(self.device.name)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hostname(self) -> str:
|
def hostname(self) -> str:
|
||||||
|
|
Loading…
Reference in New Issue