Skip to content

Commit 4b42a47

Browse files
committed
Correct function-names
1 parent 1972de8 commit 4b42a47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugwise_usb/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,12 @@ 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(
213+
async def set_measure_intervals(
214214
self, mac: str, cons_interval: int, prod_interval: int
215215
) -> bool:
216216
"""Configure the measurement interval settings."""
217217
try:
218-
await self._network.set_measure_interval(mac, cons_interval, prod_interval)
218+
await self._network.set_measure_intervals(mac, cons_interval, prod_interval)
219219
except (MessageError, NodeError) as exc:
220220
raise NodeError(f"{exc}")
221221
return True

plugwise_usb/network/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,15 +541,15 @@ async def allow_join_requests(self, state: bool) -> None:
541541
_LOGGER.debug("Sent AllowJoiningRequest to Circle+ with state=%s", state)
542542
self.accept_join_request = state
543543

544-
async def set_measure_interval(
544+
async def set_measure_intervals(
545545
self, mac: str, consumption: int, production: int
546546
) -> None:
547547
"""Set the measure intervals for both consumption and production.
548548
549549
Default: consumption = 60, production = 0.
550550
For measuring in both directions set both to 60.
551551
"""
552-
_LOGGER.debug("set_measure_interval | cons=%s, prod=%s", consumption, production)
552+
_LOGGER.debug("set_measure_intervals | cons=%s, prod=%s", consumption, production)
553553
request = CircleMeasureIntervalRequest(
554554
self._controller.send, bytes(mac, UTF8), consumption, production
555555
)

0 commit comments

Comments
 (0)