Skip to content

Commit c806aa2

Browse files
committed
Provide complete appl_data for P1 legacy
1 parent d21025f commit c806aa2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

plugwise/helper.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def _all_locations(self):
392392
"members": loc.members,
393393
}
394394

395-
# Smile P1 has one valid location, filter any left-overs
395+
# Smile P1 has one valid location, skip any left-overs
396396
if self.smile_type == "power":
397397
return
398398

@@ -522,11 +522,13 @@ def _all_appliances(self):
522522
# Inject home_location as device id for legacy so
523523
# appl_data can use the location id as device id.
524524
self._appl_data[self._home_location] = {
525-
"name": "P1",
526-
"model": "Smile P1",
527-
"types": {"power", "home"},
528525
"class": "gateway",
526+
"fw": None,
529527
"location": self._home_location,
528+
"model": "Smile P1",
529+
"name": "P1",
530+
"types": {"power", "home"},
531+
"vendor": "Plugwise B.V.",
530532
}
531533
self.gateway_id = self._home_location
532534

0 commit comments

Comments
 (0)