Skip to content

Commit 076ff5b

Browse files
committed
await _load_defaults
1 parent 6416abc commit 076ff5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugwise_usb/nodes/sed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async def load(self) -> None:
123123
self._loaded = True
124124
if not self._loaded:
125125
_LOGGER.debug("Load SED node %s defaults", self._node_info.mac)
126-
self._load_defaults()
126+
await self._load_defaults()
127127
self._loaded = True
128128
self._features += SED_FEATURES
129129

tests/test_usb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,7 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
21772177
assert await test_scan.set_motion_reset_timer(0)
21782178
with pytest.raises(ValueError):
21792179
assert await test_scan.set_motion_reset_timer(256)
2180-
assert await test_scan.set_motion_reset_timer(10)
2180+
assert not await test_scan.set_motion_reset_timer(10)
21812181
assert test_scan.scan_config_task_scheduled
21822182
assert await test_scan.set_motion_reset_timer(15)
21832183
assert test_scan.scan_config_task_scheduled

0 commit comments

Comments
 (0)