mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 07:47:08 +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 a unique, HASS-friendly identifier for this entity."""
|
||||||
return self._mac.replace(':', '')
|
return self._mac.replace(':', '')
|
||||||
|
|
||||||
|
@property
|
||||||
|
def available(self) -> bool:
|
||||||
|
"""Return True if entity is available."""
|
||||||
|
return self._device.available
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self) -> str:
|
def name(self) -> str:
|
||||||
"""Return the name of the switch."""
|
"""Return the name of the switch."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user