mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
parent
3b5775573b
commit
201c9fed77
@ -46,8 +46,7 @@ class InsteonPLMSwitchDevice(InsteonPLMEntity, SwitchDevice):
|
|||||||
@property
|
@property
|
||||||
def is_on(self):
|
def is_on(self):
|
||||||
"""Return the boolean response if the node is on."""
|
"""Return the boolean response if the node is on."""
|
||||||
onlevel = self._insteon_device_state.value
|
return bool(self._insteon_device_state.value)
|
||||||
return bool(onlevel)
|
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_turn_on(self, **kwargs):
|
def async_turn_on(self, **kwargs):
|
||||||
@ -63,6 +62,11 @@ class InsteonPLMSwitchDevice(InsteonPLMEntity, SwitchDevice):
|
|||||||
class InsteonPLMOpenClosedDevice(InsteonPLMEntity, SwitchDevice):
|
class InsteonPLMOpenClosedDevice(InsteonPLMEntity, SwitchDevice):
|
||||||
"""A Class for an Insteon device."""
|
"""A Class for an Insteon device."""
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_on(self):
|
||||||
|
"""Return the boolean response if the node is on."""
|
||||||
|
return bool(self._insteon_device_state.value)
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_turn_on(self, **kwargs):
|
def async_turn_on(self, **kwargs):
|
||||||
"""Turn device on."""
|
"""Turn device on."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user