Skip to content

Commit

Permalink
Fixed the power off issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sockless-coding committed Jun 20, 2024
1 parent 17cbcb3 commit 97c3998
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/panasonic_cc/panasonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ def current_power(self):
return self.current_power_value

async def turn_off(self):
await self.hass.async_add_executor_job(
self.set_device,
await self.set_device(
{ "power": self.constants.Power.Off }
)
await self.do_update()
Expand Down

0 comments on commit 97c3998

Please sign in to comment.