Skip to content

Commit 1267192

Browse files
committed
Fixes
1 parent c069822 commit 1267192

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugwise_usb/network/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,12 @@ async def allow_join_requests(self, state: bool) -> None:
544544

545545
async def energy_reset_request(self, mac: str) -> None:
546546
"""Send an energy-reset to a Node."""
547+
node_protocols = self._nodes[mac]._node_protocols
547548
request = CircleClockSetRequest(
548549
self._controller.send,
549-
self._mac_in_bytes,
550+
bytes(mac, UTF8),
550551
datetime.now(tz=UTC),
551-
self._node_protocols.max,
552+
node_protocols.max,
552553
True,
553554
)
554555
if (response := await request.send()) is None:

0 commit comments

Comments
 (0)