Skip to content

Commit

Permalink
Fix for sending commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ehendrix23 committed Feb 13, 2021
1 parent 366df35 commit b9a6e07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pymyq/garagedoor.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async def close(self, wait_for_state: bool = False) -> Union[asyncio.Task, bool]
# Device is currently not closed or closing, send command to close
await self._send_state_command(
url=COMMAND_URI.format(
account_id=self.account,
account_id=self.account.id,
device_serial=self.device_id,
command=COMMAND_CLOSE,
),
Expand Down Expand Up @@ -106,7 +106,7 @@ async def open(self, wait_for_state: bool = False) -> Union[asyncio.Task, bool]:
# run update() before checking):
await self._send_state_command(
url=COMMAND_URI.format(
account_id=self.account,
account_id=self.account.id,
device_serial=self.device_id,
command=COMMAND_OPEN,
),
Expand Down
4 changes: 2 additions & 2 deletions pymyq/lamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def turnoff(self, wait_for_state: bool = False) -> Union[asyncio.Task, boo

await self._send_state_command(
url=COMMAND_URI.format(
account_id=self.account,
account_id=self.account.id,
device_serial=self.device_id,
command=COMMAND_OFF,
),
Expand Down Expand Up @@ -76,7 +76,7 @@ async def turnon(self, wait_for_state: bool = False) -> Union[asyncio.Task, bool

await self._send_state_command(
url=COMMAND_URI.format(
account_id=self.account,
account_id=self.account.id,
device_serial=self.device_id,
command=COMMAND_ON,
),
Expand Down

0 comments on commit b9a6e07

Please sign in to comment.