Skip to content

Commit df3f266

Browse files
committed
Update related test-asserts
1 parent 78b874c commit df3f266

File tree

1 file changed

+50
-50
lines changed

1 file changed

+50
-50
lines changed

tests/test_smile.py

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,8 @@ async def test_connect_anna_v4(self):
10731073
},
10741074
"preset_modes": ["vacation", "no_frost", "away", "asleep", "home"],
10751075
"active_preset": "home",
1076-
"available_schedules": ["Standaard", "Thuiswerken", "Off"],
1077-
"select_schedule": "Off",
1076+
"available_schedules": ["Standaard", "Thuiswerken", "off"],
1077+
"select_schedule": "off",
10781078
"mode": "heat",
10791079
"sensors": {"temperature": 20.5, "setpoint": 20.5, "illuminance": 40.5},
10801080
},
@@ -1252,8 +1252,8 @@ async def test_connect_anna_v4_dhw(self):
12521252
},
12531253
"preset_modes": ["vacation", "no_frost", "away", "asleep", "home"],
12541254
"active_preset": "home",
1255-
"available_schedules": ["Standaard", "Thuiswerken", "Off"],
1256-
"select_schedule": "Off",
1255+
"available_schedules": ["Standaard", "Thuiswerken", "off"],
1256+
"select_schedule": "off",
12571257
"mode": "heat",
12581258
"sensors": {"temperature": 20.5, "setpoint": 20.5, "illuminance": 40.5},
12591259
},
@@ -1352,7 +1352,7 @@ async def test_connect_anna_without_boiler_fw3(self):
13521352
},
13531353
"preset_modes": ["vacation", "no_frost", "asleep", "away", "home"],
13541354
"active_preset": "away",
1355-
"available_schedules": ["Test", "Normal", "Off"],
1355+
"available_schedules": ["Test", "Normal", "off"],
13561356
"select_schedule": "Normal",
13571357
"mode": "auto",
13581358
"sensors": {"temperature": 20.6, "setpoint": 16.0, "illuminance": 35.0},
@@ -1435,7 +1435,7 @@ async def test_connect_anna_without_boiler_fw4(self):
14351435
},
14361436
"preset_modes": ["vacation", "no_frost", "asleep", "away", "home"],
14371437
"active_preset": "home",
1438-
"available_schedules": ["Normal", "Off"],
1438+
"available_schedules": ["Normal", "off"],
14391439
"select_schedule": "Normal",
14401440
"mode": "auto",
14411441
"sensors": {"temperature": 20.4, "setpoint": 21.0, "illuminance": 44.8},
@@ -1500,7 +1500,7 @@ async def test_connect_anna_without_boiler_fw42(self):
15001500
},
15011501
"preset_modes": ["no_frost", "asleep", "away", "home", "vacation"],
15021502
"active_preset": "home",
1503-
"available_schedules": ["Test", "Normal", "Off"],
1503+
"available_schedules": ["Test", "Normal", "off"],
15041504
"select_schedule": "Test",
15051505
"mode": "auto",
15061506
"sensors": {"temperature": 20.6, "setpoint": 21.0, "illuminance": 0.25},
@@ -1635,7 +1635,7 @@ async def test_connect_adam_plus_anna(self):
16351635
},
16361636
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
16371637
"active_preset": "home",
1638-
"available_schedules": ["Weekschema", "Off"],
1638+
"available_schedules": ["Weekschema", "off"],
16391639
"select_schedule": "Weekschema",
16401640
"mode": "auto",
16411641
"sensors": {"temperature": 20.5, "setpoint": 20.5},
@@ -1762,7 +1762,7 @@ async def test_connect_adam_plus_anna_new(self):
17621762
},
17631763
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
17641764
"active_preset": "asleep",
1765-
"available_schedules": ["Weekschema", "Badkamer", "Test", "Off"],
1765+
"available_schedules": ["Weekschema", "Badkamer", "Test", "off"],
17661766
"select_schedule": "Weekschema",
17671767
"control_state": "heating",
17681768
"mode": "auto",
@@ -1855,7 +1855,7 @@ async def test_connect_adam_plus_anna_new(self):
18551855
"available": True,
18561856
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
18571857
"active_preset": "home",
1858-
"available_schedules": ["Weekschema", "Badkamer", "Test", "Off"],
1858+
"available_schedules": ["Weekschema", "Badkamer", "Test", "off"],
18591859
"select_schedule": "Badkamer",
18601860
"control_state": "off",
18611861
"mode": "auto",
@@ -1984,7 +1984,7 @@ async def test_connect_adam_plus_anna_new(self):
19841984
await smile.set_schedule_state("f2bf9048bef64cc5b6d5110154e33c81", "off")
19851985

19861986
# Special test-case for turning a schedule off for a location via the option "off".
1987-
await smile.set_schedule_state("f2bf9048bef64cc5b6d5110154e33c81", "on", "Off")
1987+
await smile.set_schedule_state("f2bf9048bef64cc5b6d5110154e33c81", "on", "off")
19881988

19891989
# bad schedule-state test
19901990
result = await self.tinker_thermostat_schedule(
@@ -2076,9 +2076,9 @@ async def test_connect_adam_zone_per_device(self):
20762076
"GF7 Woonkamer",
20772077
"Badkamer Schema",
20782078
"CV Jessie",
2079-
"Off",
2079+
"off",
20802080
],
2081-
"select_schedule": "Off",
2081+
"select_schedule": "off",
20822082
"mode": "heat",
20832083
"sensors": {"temperature": 16.5, "setpoint": 13.0, "battery": 67},
20842084
},
@@ -2141,7 +2141,7 @@ async def test_connect_adam_zone_per_device(self):
21412141
"GF7 Woonkamer",
21422142
"Badkamer Schema",
21432143
"CV Jessie",
2144-
"Off",
2144+
"off",
21452145
],
21462146
"select_schedule": "GF7 Woonkamer",
21472147
"mode": "auto",
@@ -2317,7 +2317,7 @@ async def test_connect_adam_zone_per_device(self):
23172317
"GF7 Woonkamer",
23182318
"Badkamer Schema",
23192319
"CV Jessie",
2320-
"Off",
2320+
"off",
23212321
],
23222322
"select_schedule": "CV Jessie",
23232323
"mode": "auto",
@@ -2365,7 +2365,7 @@ async def test_connect_adam_zone_per_device(self):
23652365
"GF7 Woonkamer",
23662366
"Badkamer Schema",
23672367
"CV Jessie",
2368-
"Off",
2368+
"off",
23692369
],
23702370
"select_schedule": "Badkamer Schema",
23712371
"mode": "auto",
@@ -2412,9 +2412,9 @@ async def test_connect_adam_zone_per_device(self):
24122412
"GF7 Woonkamer",
24132413
"Badkamer Schema",
24142414
"CV Jessie",
2415-
"Off",
2415+
"off",
24162416
],
2417-
"select_schedule": "Off",
2417+
"select_schedule": "off",
24182418
"mode": "heat",
24192419
"sensors": {
24202420
"temperature": 15.6,
@@ -2527,9 +2527,9 @@ async def test_connect_adam_multiple_devices_per_zone(self):
25272527
"GF7 Woonkamer",
25282528
"Badkamer Schema",
25292529
"CV Jessie",
2530-
"Off",
2530+
"off",
25312531
],
2532-
"select_schedule": "Off",
2532+
"select_schedule": "off",
25332533
"mode": "heat",
25342534
"sensors": {"temperature": 16.5, "setpoint": 13.0, "battery": 67},
25352535
},
@@ -2592,7 +2592,7 @@ async def test_connect_adam_multiple_devices_per_zone(self):
25922592
"GF7 Woonkamer",
25932593
"Badkamer Schema",
25942594
"CV Jessie",
2595-
"Off",
2595+
"off",
25962596
],
25972597
"select_schedule": "GF7 Woonkamer",
25982598
"mode": "auto",
@@ -2768,7 +2768,7 @@ async def test_connect_adam_multiple_devices_per_zone(self):
27682768
"GF7 Woonkamer",
27692769
"Badkamer Schema",
27702770
"CV Jessie",
2771-
"Off",
2771+
"off",
27722772
],
27732773
"select_schedule": "CV Jessie",
27742774
"mode": "auto",
@@ -2816,7 +2816,7 @@ async def test_connect_adam_multiple_devices_per_zone(self):
28162816
"GF7 Woonkamer",
28172817
"Badkamer Schema",
28182818
"CV Jessie",
2819-
"Off",
2819+
"off",
28202820
],
28212821
"select_schedule": "Badkamer Schema",
28222822
"mode": "auto",
@@ -2863,9 +2863,9 @@ async def test_connect_adam_multiple_devices_per_zone(self):
28632863
"GF7 Woonkamer",
28642864
"Badkamer Schema",
28652865
"CV Jessie",
2866-
"Off",
2866+
"off",
28672867
],
2868-
"select_schedule": "Off",
2868+
"select_schedule": "off",
28692869
"mode": "heat",
28702870
"sensors": {
28712871
"temperature": 15.6,
@@ -2969,7 +2969,7 @@ async def test_adam_heatpump_cooling(self):
29692969
"Opstaan weekdag",
29702970
"Werkdag schema",
29712971
"Weekend",
2972-
"Off",
2972+
"off",
29732973
],
29742974
"control_state": "off",
29752975
"dev_class": "zone_thermostat",
@@ -2980,7 +2980,7 @@ async def test_adam_heatpump_cooling(self):
29802980
"model": "Lisa",
29812981
"name": "Thermostaat BK",
29822982
"preset_modes": ["no_frost", "vacation", "away", "home", "asleep"],
2983-
"select_schedule": "Off",
2983+
"select_schedule": "off",
29842984
"sensors": {
29852985
"battery": 55,
29862986
"setpoint": 18.0,
@@ -3070,7 +3070,7 @@ async def test_adam_heatpump_cooling(self):
30703070
"Opstaan weekdag",
30713071
"Werkdag schema",
30723072
"Weekend",
3073-
"Off",
3073+
"off",
30743074
],
30753075
"control_state": "off",
30763076
"dev_class": "zone_thermostat",
@@ -3081,7 +3081,7 @@ async def test_adam_heatpump_cooling(self):
30813081
"model": "Lisa",
30823082
"name": "Thermostaat DB",
30833083
"preset_modes": ["no_frost", "vacation", "away", "home", "asleep"],
3084-
"select_schedule": "Off",
3084+
"select_schedule": "off",
30853085
"sensors": {
30863086
"setpoint": 18.0,
30873087
"temperature": 22.0,
@@ -3140,7 +3140,7 @@ async def test_adam_heatpump_cooling(self):
31403140
"Opstaan weekdag",
31413141
"Werkdag schema",
31423142
"Weekend",
3143-
"Off",
3143+
"off",
31443144
],
31453145
"control_state": "off",
31463146
"dev_class": "zone_thermostat",
@@ -3151,7 +3151,7 @@ async def test_adam_heatpump_cooling(self):
31513151
"model": "Lisa",
31523152
"name": "Thermostaat JM",
31533153
"preset_modes": ["no_frost", "vacation", "away", "home", "asleep"],
3154-
"select_schedule": "Off",
3154+
"select_schedule": "off",
31553155
"sensors": {
31563156
"setpoint": 18.0,
31573157
"temperature": 20.0,
@@ -3257,7 +3257,7 @@ async def test_adam_heatpump_cooling(self):
32573257
"Opstaan weekdag",
32583258
"Werkdag schema",
32593259
"Weekend",
3260-
"Off",
3260+
"off",
32613261
],
32623262
"control_state": "off",
32633263
"dev_class": "zone_thermostat",
@@ -3268,7 +3268,7 @@ async def test_adam_heatpump_cooling(self):
32683268
"model": "Lisa",
32693269
"name": "Thermostaat SQ",
32703270
"preset_modes": ["no_frost", "vacation", "away", "home", "asleep"],
3271-
"select_schedule": "Off",
3271+
"select_schedule": "off",
32723272
"sensors": {
32733273
"setpoint": 18.5,
32743274
"temperature": 21.4,
@@ -3289,7 +3289,7 @@ async def test_adam_heatpump_cooling(self):
32893289
"Opstaan weekdag",
32903290
"Werkdag schema",
32913291
"Weekend",
3292-
"Off",
3292+
"off",
32933293
],
32943294
"control_state": "off",
32953295
"dev_class": "zone_thermostat",
@@ -3300,7 +3300,7 @@ async def test_adam_heatpump_cooling(self):
33003300
"model": "Lisa",
33013301
"name": "Thermostaat RB",
33023302
"preset_modes": ["no_frost", "vacation", "away", "home", "asleep"],
3303-
"select_schedule": "Off",
3303+
"select_schedule": "off",
33043304
"sensors": {
33053305
"setpoint": 17.0,
33063306
"temperature": 20.7,
@@ -3320,7 +3320,7 @@ async def test_adam_heatpump_cooling(self):
33203320
"Opstaan weekdag",
33213321
"Werkdag schema",
33223322
"Weekend",
3323-
"Off",
3323+
"off",
33243324
],
33253325
"control_state": "off",
33263326
"dev_class": "thermostat",
@@ -3349,7 +3349,7 @@ async def test_adam_heatpump_cooling(self):
33493349
"Opstaan weekdag",
33503350
"Werkdag schema",
33513351
"Weekend",
3352-
"Off",
3352+
"off",
33533353
],
33543354
"control_state": "off",
33553355
"dev_class": "zone_thermostat",
@@ -3360,7 +3360,7 @@ async def test_adam_heatpump_cooling(self):
33603360
"model": "Lisa",
33613361
"name": "Thermostaat SJ",
33623362
"preset_modes": ["no_frost", "vacation", "away", "home", "asleep"],
3363-
"select_schedule": "Off",
3363+
"select_schedule": "off",
33643364
"sensors": {
33653365
"setpoint": 20.5,
33663366
"temperature": 22.6,
@@ -3381,7 +3381,7 @@ async def test_adam_heatpump_cooling(self):
33813381
"Opstaan weekdag",
33823382
"Werkdag schema",
33833383
"Weekend",
3384-
"Off",
3384+
"off",
33853385
],
33863386
"control_state": "off",
33873387
"dev_class": "zone_thermostat",
@@ -3414,7 +3414,7 @@ async def test_adam_heatpump_cooling(self):
34143414
"Opstaan weekdag",
34153415
"Werkdag schema",
34163416
"Weekend",
3417-
"Off",
3417+
"off",
34183418
],
34193419
"control_state": "off",
34203420
"dev_class": "zone_thermostat",
@@ -3446,7 +3446,7 @@ async def test_adam_heatpump_cooling(self):
34463446
"Opstaan weekdag",
34473447
"Werkdag schema",
34483448
"Weekend",
3449-
"Off",
3449+
"off",
34503450
],
34513451
"control_state": "off",
34523452
"dev_class": "zone_thermostat",
@@ -4033,7 +4033,7 @@ async def test_connect_anna_heatpump_heating(self):
40334033
},
40344034
"preset_modes": ["no_frost", "home", "away", "asleep", "vacation"],
40354035
"active_preset": "home",
4036-
"available_schedules": ["standaard", "Off"],
4036+
"available_schedules": ["standaard", "off"],
40374037
"select_schedule": "standaard",
40384038
"mode": "auto",
40394039
"sensors": {
@@ -4196,8 +4196,8 @@ async def test_connect_anna_heatpump_cooling(self):
41964196
},
41974197
"preset_modes": ["no_frost", "home", "away", "asleep", "vacation"],
41984198
"active_preset": "home",
4199-
"available_schedules": ["standaard", "Off"],
4200-
"select_schedule": "Off",
4199+
"available_schedules": ["standaard", "off"],
4200+
"select_schedule": "off",
42014201
"mode": "heat_cool",
42024202
"sensors": {
42034203
"temperature": 22.3,
@@ -4391,7 +4391,7 @@ async def test_connect_anna_elga_2(self):
43914391
},
43924392
"preset_modes": ["away", "no_frost", "vacation", "home", "asleep"],
43934393
"active_preset": "home",
4394-
"available_schedules": ["Thermostat schedule", "Off"],
4394+
"available_schedules": ["Thermostat schedule", "off"],
43954395
"select_schedule": "Thermostat schedule",
43964396
"mode": "auto",
43974397
"sensors": {
@@ -4452,8 +4452,8 @@ async def test_connect_anna_elga_2_schedule_off(self):
44524452
},
44534453
"preset_modes": ["away", "no_frost", "vacation", "home", "asleep"],
44544454
"active_preset": "home",
4455-
"available_schedules": ["Thermostat schedule", "Off"],
4456-
"select_schedule": "Off",
4455+
"available_schedules": ["Thermostat schedule", "off"],
4456+
"select_schedule": "off",
44574457
"mode": "heat_cool",
44584458
"sensors": {
44594459
"temperature": 20.9,
@@ -4525,7 +4525,7 @@ async def test_connect_anna_elga_2_cooling(self):
45254525
},
45264526
"ebd90df1ab334565b5895f37590ccff4": {
45274527
"active_preset": "home",
4528-
"available_schedules": ["Thermostat schedule", "Off"],
4528+
"available_schedules": ["Thermostat schedule", "off"],
45294529
"dev_class": "thermostat",
45304530
"firmware": "2018-02-08T11:15:53+01:00",
45314531
"hardware": "6539-1301-5002",
@@ -4614,7 +4614,7 @@ async def test_connect_anna_loria_heating_idle(self):
46144614
},
46154615
"preset_modes": ["away", "vacation", "no_frost", "home", "asleep"],
46164616
"active_preset": "home",
4617-
"available_schedules": ["Winter", "Test ", "Off"],
4617+
"available_schedules": ["Winter", "Test ", "off"],
46184618
"select_schedule": "Winter",
46194619
"mode": "auto",
46204620
"sensors": {
@@ -4740,7 +4740,7 @@ async def test_connect_anna_loria_cooling_active(self):
47404740
},
47414741
"preset_modes": ["away", "vacation", "no_frost", "home", "asleep"],
47424742
"active_preset": "home",
4743-
"available_schedules": ["Winter", "Test ", "Off"],
4743+
"available_schedules": ["Winter", "Test ", "off"],
47444744
"select_schedule": "Winter",
47454745
"mode": "auto",
47464746
"sensors": {

0 commit comments

Comments
 (0)