We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bdb3dc commit 4b47759Copy full SHA for 4b47759
plugwise/legacy/helper.py
@@ -136,8 +136,10 @@ def _all_appliances(self) -> None:
136
continue # pragma: no cover
137
138
self._create_gw_entities(appl)
139
+ self._reorder_devices()
140
- # Place the gateway and optional heater_central devices as 1st and 2nd
141
+ def _reorder_devices(self) -> None:
142
+ """Place the gateway and optional heater_central devices as 1st and 2nd."""
143
for dev_class in PRIORITY_DEVICE_CLASSES:
144
for entity_id, entity in dict(self.gw_entities).items():
145
if entity["dev_class"] == dev_class:
0 commit comments