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 562554a commit 8ee21c9Copy full SHA for 8ee21c9
plugwise/helper.py
@@ -717,6 +717,16 @@ def _all_appliances(self) -> None:
717
# Leave for-loop to avoid a 2nd device_id switch
718
break
719
720
+ # Place the gateway and optional heater_central devices as 1st and 2nd
721
+ for dev_class in ("heater_central", "gateway"):
722
+ for dev_id, device in dict(self.gw_devices).items():
723
+ if device["dev_class"] == dev_class:
724
+ tmp_device = device
725
+ self.gw_devices.pop(dev_id)
726
+ cleared_dict = self.gw_devices
727
+ add_to_front = {dev_id: tmp_device}
728
+ self.gw_devices = {**add_to_front, **cleared_dict}
729
+
730
def _match_locations(self) -> dict[str, ThermoLoc]:
731
"""Helper-function for _scan_thermostats().
732
0 commit comments