mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
available to switchmate (#17640)
This commit is contained in:
parent
9982867d66
commit
ef93d48d50
@ -52,6 +52,11 @@ class Switchmate(SwitchDevice):
|
||||
"""Return a unique, HASS-friendly identifier for this entity."""
|
||||
return self._mac.replace(':', '')
|
||||
|
||||
@property
|
||||
def available(self) -> bool:
|
||||
"""Return True if entity is available."""
|
||||
return self._device.available
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
"""Return the name of the switch."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user