Skip to content

Commit

Permalink
Merge pull request #81 from sg26565/is_on_for_outlets
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjoyg authored Oct 11, 2024
2 parents a691bdf + 2818f6e commit d8ec5a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/dirigera_platform/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ class ikea_outlet_switch_sensor(ikea_base_device_sensor, SwitchEntity):
def __init__(self, device):
super().__init__(device = device, name = device.name )

@property
def is_on(self):
return self._device.is_on

async def async_turn_on(self):
logger.debug("sensor: outlet turn_on")
await self._device.async_turn_on()
Expand Down

0 comments on commit d8ec5a7

Please sign in to comment.