Skip to content

Commit

Permalink
Changed back to no intermediate state
Browse files Browse the repository at this point in the history
  • Loading branch information
ehendrix23 committed Mar 6, 2021
1 parent 69518c8 commit a603011
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pymyq/lamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
COMMAND_OFF = "off"
STATE_ON = "on"
STATE_OFF = "off"
STATE_TURNINGOFF = "turning off"
STATE_TURNINGON = "turning on"


class MyQLamp(MyQDevice):
Expand Down Expand Up @@ -53,7 +51,7 @@ async def turnoff(self, wait_for_state: bool = False) -> Union[asyncio.Task, boo

return await self._send_state_command(
to_state=STATE_OFF,
intermediate_state=STATE_TURNINGOFF,
intermediate_state=STATE_OFF,
url=COMMAND_URI.format(
account_id=self.account.id,
device_serial=self.device_id,
Expand All @@ -68,7 +66,7 @@ async def turnon(self, wait_for_state: bool = False) -> Union[asyncio.Task, bool

return await self._send_state_command(
to_state=STATE_ON,
intermediate_state=STATE_TURNINGON,
intermediate_state=STATE_ON,
url=COMMAND_URI.format(
account_id=self.account.id,
device_serial=self.device_id,
Expand Down

0 comments on commit a603011

Please sign in to comment.