available to switchmate (#17640)
This commit is contained in:
parent
9982867d66
commit
ef93d48d50
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue