Skip to content

Commit 622f099

Browse files
committed
Don't re-init self.gw_entities
1 parent 67309e7 commit 622f099

File tree

2 files changed

+42
-9
lines changed

2 files changed

+42
-9
lines changed

fixtures/adam_plus_anna_new/data.json

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,24 @@
211211
},
212212
"dev_class": "gateway",
213213
"firmware": "3.9.0",
214-
"gateway_modes": ["away", "full", "vacation"],
214+
"gateway_modes": [
215+
"away",
216+
"full",
217+
"vacation"
218+
],
215219
"hardware": "AME Smile 2.0 board",
216220
"location": "bc93488efab249e5bc54fd7e175a6f91",
217221
"mac_address": "D40FB201CBA0",
218222
"model": "Gateway",
219223
"model_id": "smile_open_therm",
220224
"name": "Adam",
221225
"notifications": {},
222-
"regulation_modes": ["bleeding_cold", "heating", "off", "bleeding_hot"],
226+
"regulation_modes": [
227+
"bleeding_cold",
228+
"heating",
229+
"off",
230+
"bleeding_hot"
231+
],
223232
"select_gateway_mode": "full",
224233
"select_regulation_mode": "heating",
225234
"sensors": {
@@ -308,7 +317,13 @@
308317
"dev_class": "climate",
309318
"model": "ThermoZone",
310319
"name": "Living room",
311-
"preset_modes": ["vacation", "no_frost", "asleep", "home", "away"],
320+
"preset_modes": [
321+
"vacation",
322+
"no_frost",
323+
"asleep",
324+
"home",
325+
"away"
326+
],
312327
"select_schedule": "Weekschema",
313328
"select_zone_profile": "active",
314329
"sensors": {
@@ -331,7 +346,11 @@
331346
"secondary": []
332347
},
333348
"vendor": "Plugwise",
334-
"zone_profiles": ["active", "off", "passive"]
349+
"zone_profiles": [
350+
"active",
351+
"off",
352+
"passive"
353+
]
335354
},
336355
"f871b8c4d63549319221e294e4f88074": {
337356
"active_preset": "vacation",
@@ -347,7 +366,13 @@
347366
"dev_class": "climate",
348367
"model": "ThermoZone",
349368
"name": "Bathroom",
350-
"preset_modes": ["vacation", "no_frost", "asleep", "home", "away"],
369+
"preset_modes": [
370+
"vacation",
371+
"no_frost",
372+
"asleep",
373+
"home",
374+
"away"
375+
],
351376
"select_schedule": "off",
352377
"select_zone_profile": "passive",
353378
"sensors": {
@@ -362,10 +387,18 @@
362387
"upper_bound": 99.9
363388
},
364389
"thermostats": {
365-
"primary": ["e2f4322d57924fa090fbbc48b3a140dc"],
366-
"secondary": ["1772a4ea304041adb83f357b751341ff"]
390+
"primary": [
391+
"e2f4322d57924fa090fbbc48b3a140dc"
392+
],
393+
"secondary": [
394+
"1772a4ea304041adb83f357b751341ff"
395+
]
367396
},
368397
"vendor": "Plugwise",
369-
"zone_profiles": ["active", "off", "passive"]
398+
"zone_profiles": [
399+
"active",
400+
"off",
401+
"passive"
402+
]
370403
}
371404
}

plugwise/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(self) -> None:
5858
self._heater_id: str = NONE
5959
self._new_groups: list[str] = []
6060
self._on_off_device: bool
61-
self.gw_entities: dict[str, GwEntityData] = {}
61+
self.gw_entities: dict[str, GwEntityData]
6262
self.smile: Munch
6363

6464
@property

0 commit comments

Comments
 (0)