Skip to content

Commit 13f0b58

Browse files
committed
Start adding collect updated switch state
1 parent da05900 commit 13f0b58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugwise/smile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from __future__ import annotations
77

8+
from asyncio import sleep
89
from collections.abc import Awaitable, Callable
910
import datetime as dt
1011
from typing import Any, cast
@@ -441,6 +442,8 @@ async def set_switch_state(
441442
return current_state
442443

443444
await self.call_request(uri, method="put", data=data)
445+
sleep(1)
446+
await self.call_request(uri, method="get", data=data)
444447
return requested_state
445448

446449
async def _set_groupswitch_member_state(

0 commit comments

Comments
 (0)