Skip to content

Commit be32b32

Browse files
committed
Create corresponding function at __init__-level
1 parent e8dd76c commit be32b32

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugwise_usb/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,14 @@ async def set_accept_join_request(self, state: bool) -> bool:
210210
raise NodeError(f"Failed setting accept joining: {exc}") from exc
211211
return True
212212

213+
async def set_measure_interval(self, cons: int, prod: int) -> bool:
214+
"""Configure the measurement interval settings."""
215+
try:
216+
await self._network.set_measure_interval(cons, prod)
217+
except NodeError as exc:
218+
raise NodeError(f"{exc}")
219+
return True
220+
213221
async def clear_cache(self) -> None:
214222
"""Clear current cache."""
215223
if self._network is not None:

0 commit comments

Comments
 (0)