Skip to content

Commit 70fa1f2

Browse files
committed
Fix
1 parent 76f3a58 commit 70fa1f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def _get_p1_smartmeter_info(self) -> None:
383383
def _sort_gw_entities(self) -> None:
384384
"""Place the gateway and optional heater_central entities as 1st and 2nd."""
385385
def sort_key(item):
386-
entity_id, entity = item
386+
_, entity = item
387387
try:
388388
return PRIORITY_DEVICE_CLASSES.index(entity["dev_class"])
389389
except ValueError:

0 commit comments

Comments
 (0)