Skip to content

Commit a603011

Browse files
committed
Changed back to no intermediate state
1 parent 69518c8 commit a603011

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pymyq/lamp.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
COMMAND_OFF = "off"
2020
STATE_ON = "on"
2121
STATE_OFF = "off"
22-
STATE_TURNINGOFF = "turning off"
23-
STATE_TURNINGON = "turning on"
2422

2523

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

5452
return await self._send_state_command(
5553
to_state=STATE_OFF,
56-
intermediate_state=STATE_TURNINGOFF,
54+
intermediate_state=STATE_OFF,
5755
url=COMMAND_URI.format(
5856
account_id=self.account.id,
5957
device_serial=self.device_id,
@@ -68,7 +66,7 @@ async def turnon(self, wait_for_state: bool = False) -> Union[asyncio.Task, bool
6866

6967
return await self._send_state_command(
7068
to_state=STATE_ON,
71-
intermediate_state=STATE_TURNINGON,
69+
intermediate_state=STATE_ON,
7270
url=COMMAND_URI.format(
7371
account_id=self.account.id,
7472
device_serial=self.device_id,

0 commit comments

Comments
 (0)