Skip to content

Commit b9a6e07

Browse files
committed
Fix for sending commands
1 parent 366df35 commit b9a6e07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pymyq/garagedoor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def close(self, wait_for_state: bool = False) -> Union[asyncio.Task, bool]
7676
# Device is currently not closed or closing, send command to close
7777
await self._send_state_command(
7878
url=COMMAND_URI.format(
79-
account_id=self.account,
79+
account_id=self.account.id,
8080
device_serial=self.device_id,
8181
command=COMMAND_CLOSE,
8282
),
@@ -106,7 +106,7 @@ async def open(self, wait_for_state: bool = False) -> Union[asyncio.Task, bool]:
106106
# run update() before checking):
107107
await self._send_state_command(
108108
url=COMMAND_URI.format(
109-
account_id=self.account,
109+
account_id=self.account.id,
110110
device_serial=self.device_id,
111111
command=COMMAND_OPEN,
112112
),

pymyq/lamp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def turnoff(self, wait_for_state: bool = False) -> Union[asyncio.Task, boo
4848

4949
await self._send_state_command(
5050
url=COMMAND_URI.format(
51-
account_id=self.account,
51+
account_id=self.account.id,
5252
device_serial=self.device_id,
5353
command=COMMAND_OFF,
5454
),
@@ -76,7 +76,7 @@ async def turnon(self, wait_for_state: bool = False) -> Union[asyncio.Task, bool
7676

7777
await self._send_state_command(
7878
url=COMMAND_URI.format(
79-
account_id=self.account,
79+
account_id=self.account.id,
8080
device_serial=self.device_id,
8181
command=COMMAND_ON,
8282
),

0 commit comments

Comments
 (0)