Skip to content

Commit 2ccdbbd

Browse files
committed
Update related test assert
1 parent 4cd6865 commit 2ccdbbd

File tree

3 files changed

+34
-9
lines changed

3 files changed

+34
-9
lines changed

fixtures/adam_plus_anna_new/data.json

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"electricity_produced_interval": 0.0
127127
},
128128
"switches": {
129-
"lock": true,
129+
"lock": false,
130130
"relay": true
131131
},
132132
"vendor": "Plugwise",
@@ -187,15 +187,24 @@
187187
},
188188
"dev_class": "gateway",
189189
"firmware": "3.9.0",
190-
"gateway_modes": ["away", "full", "vacation"],
190+
"gateway_modes": [
191+
"away",
192+
"full",
193+
"vacation"
194+
],
191195
"hardware": "AME Smile 2.0 board",
192196
"location": "bc93488efab249e5bc54fd7e175a6f91",
193197
"mac_address": "D40FB201CBA0",
194198
"model": "Gateway",
195199
"model_id": "smile_open_therm",
196200
"name": "Adam",
197201
"notifications": {},
198-
"regulation_modes": ["bleeding_cold", "heating", "off", "bleeding_hot"],
202+
"regulation_modes": [
203+
"bleeding_cold",
204+
"heating",
205+
"off",
206+
"bleeding_hot"
207+
],
199208
"select_gateway_mode": "full",
200209
"select_regulation_mode": "heating",
201210
"sensors": {
@@ -278,7 +287,13 @@
278287
"dev_class": "climate",
279288
"model": "ThermoZone",
280289
"name": "Living room",
281-
"preset_modes": ["vacation", "no_frost", "asleep", "home", "away"],
290+
"preset_modes": [
291+
"vacation",
292+
"no_frost",
293+
"asleep",
294+
"home",
295+
"away"
296+
],
282297
"select_schedule": "Weekschema",
283298
"sensors": {
284299
"electricity_consumed": 60.8,
@@ -315,7 +330,13 @@
315330
"dev_class": "climate",
316331
"model": "ThermoZone",
317332
"name": "Bathroom",
318-
"preset_modes": ["vacation", "no_frost", "asleep", "home", "away"],
333+
"preset_modes": [
334+
"vacation",
335+
"no_frost",
336+
"asleep",
337+
"home",
338+
"away"
339+
],
319340
"select_schedule": "off",
320341
"sensors": {
321342
"electricity_consumed": 0.0,
@@ -329,8 +350,12 @@
329350
"upper_bound": 99.9
330351
},
331352
"thermostats": {
332-
"primary": ["e2f4322d57924fa090fbbc48b3a140dc"],
333-
"secondary": ["1772a4ea304041adb83f357b751341ff"]
353+
"primary": [
354+
"e2f4322d57924fa090fbbc48b3a140dc"
355+
],
356+
"secondary": [
357+
"1772a4ea304041adb83f357b751341ff"
358+
]
334359
},
335360
"vendor": "Plugwise"
336361
}

tests/data/adam/adam_plus_anna_new.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"electricity_produced_interval": 0.0
116116
},
117117
"switches": {
118-
"lock": true,
118+
"lock": false,
119119
"relay": true
120120
},
121121
"vendor": "Plugwise",

tests/test_adam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async def test_connect_adam_plus_anna_new(self):
103103
"e8ef2a01ed3b4139a53bf749204fe6b4",
104104
["2568cc4b9c1e401495d4741a5f89bee1", "29542b2b6a6a4169acecc15c72a599b8"],
105105
)
106-
assert not switch_change # both Plugs are locked
106+
assert switch_change
107107
switch_change = await self.tinker_switch(
108108
api, "056ee145a816487eaa69243c3280f8bf", model="dhw_cm_switch"
109109
)

0 commit comments

Comments
 (0)