Skip to content

Commit 4b9a102

Browse files
committed
Ruffed
1 parent 15a7115 commit 4b9a102

File tree

2 files changed

+9
-42
lines changed

2 files changed

+9
-42
lines changed

fixtures/adam_plus_anna_new/data.json

Lines changed: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -211,24 +211,15 @@
211211
},
212212
"dev_class": "gateway",
213213
"firmware": "3.9.0",
214-
"gateway_modes": [
215-
"away",
216-
"full",
217-
"vacation"
218-
],
214+
"gateway_modes": ["away", "full", "vacation"],
219215
"hardware": "AME Smile 2.0 board",
220216
"location": "bc93488efab249e5bc54fd7e175a6f91",
221217
"mac_address": "D40FB201CBA0",
222218
"model": "Gateway",
223219
"model_id": "smile_open_therm",
224220
"name": "Adam",
225221
"notifications": {},
226-
"regulation_modes": [
227-
"bleeding_cold",
228-
"heating",
229-
"off",
230-
"bleeding_hot"
231-
],
222+
"regulation_modes": ["bleeding_cold", "heating", "off", "bleeding_hot"],
232223
"select_gateway_mode": "full",
233224
"select_regulation_mode": "heating",
234225
"sensors": {
@@ -317,13 +308,7 @@
317308
"dev_class": "climate",
318309
"model": "ThermoZone",
319310
"name": "Living room",
320-
"preset_modes": [
321-
"vacation",
322-
"no_frost",
323-
"asleep",
324-
"home",
325-
"away"
326-
],
311+
"preset_modes": ["vacation", "no_frost", "asleep", "home", "away"],
327312
"select_schedule": "Weekschema",
328313
"select_zone_profile": "active",
329314
"sensors": {
@@ -346,11 +331,7 @@
346331
"secondary": []
347332
},
348333
"vendor": "Plugwise",
349-
"zone_profiles": [
350-
"active",
351-
"off",
352-
"passive"
353-
]
334+
"zone_profiles": ["active", "off", "passive"]
354335
},
355336
"f871b8c4d63549319221e294e4f88074": {
356337
"active_preset": "vacation",
@@ -366,13 +347,7 @@
366347
"dev_class": "climate",
367348
"model": "ThermoZone",
368349
"name": "Bathroom",
369-
"preset_modes": [
370-
"vacation",
371-
"no_frost",
372-
"asleep",
373-
"home",
374-
"away"
375-
],
350+
"preset_modes": ["vacation", "no_frost", "asleep", "home", "away"],
376351
"select_schedule": "off",
377352
"select_zone_profile": "passive",
378353
"sensors": {
@@ -387,18 +362,10 @@
387362
"upper_bound": 99.9
388363
},
389364
"thermostats": {
390-
"primary": [
391-
"e2f4322d57924fa090fbbc48b3a140dc"
392-
],
393-
"secondary": [
394-
"1772a4ea304041adb83f357b751341ff"
395-
]
365+
"primary": ["e2f4322d57924fa090fbbc48b3a140dc"],
366+
"secondary": ["1772a4ea304041adb83f357b751341ff"]
396367
},
397368
"vendor": "Plugwise",
398-
"zone_profiles": [
399-
"active",
400-
"off",
401-
"passive"
402-
]
369+
"zone_profiles": ["active", "off", "passive"]
403370
}
404371
}

plugwise/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _get_groups(self) -> None:
208208
if group_id is None:
209209
continue # pragma: no cover
210210

211-
if (members := self._collect_members(group)):
211+
if members := self._collect_members(group):
212212
self._new_groups.append(group_id)
213213

214214
if (

0 commit comments

Comments
 (0)