Skip to content

Commit 3760f8c

Browse files
committed
Move NodeFeature.POWER before ENERGY in _setuo_protocol()
1 parent 567b1a4 commit 3760f8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,12 +920,13 @@ async def load(self) -> bool:
920920
self._setup_protocol(
921921
CIRCLE_FIRMWARE_SUPPORT,
922922
(
923+
# Don't sort this list, order is important!
923924
NodeFeature.CIRCLE,
925+
NodeFeature.POWER,
926+
NodeFeature.ENERGY,
924927
NodeFeature.RELAY,
925928
NodeFeature.RELAY_INIT,
926929
NodeFeature.RELAY_LOCK,
927-
NodeFeature.ENERGY,
928-
NodeFeature.POWER,
929930
),
930931
)
931932
await self._loaded_callback(NodeEvent.LOADED, self.mac)

0 commit comments

Comments
 (0)