mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Stringify mikrotik device_tracker name (#72788)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
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…
x
Reference in New Issue
Block a user