Skip to content

Commit 31e6e65

Browse files
committed
Aligning
1 parent bfaeecf commit 31e6e65

File tree

7 files changed

+141
-24
lines changed

7 files changed

+141
-24
lines changed

fixtures/m_adam_cooling/all_data.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@
7070
"model": "ThermoTouch",
7171
"model_id": "143.1",
7272
"name": "Anna",
73-
"preset_modes": ["no_frost", "asleep", "vacation", "home", "away"],
73+
"preset_modes": [
74+
"no_frost",
75+
"asleep",
76+
"vacation",
77+
"home",
78+
"away"
79+
],
7480
"select_schedule": "off",
7581
"sensors": {
7682
"setpoint": 23.5,
@@ -90,7 +96,11 @@
9096
},
9197
"dev_class": "gateway",
9298
"firmware": "3.7.8",
93-
"gateway_modes": ["away", "full", "vacation"],
99+
"gateway_modes": [
100+
"away",
101+
"full",
102+
"vacation"
103+
],
94104
"hardware": "AME Smile 2.0 board",
95105
"location": "bc93488efab249e5bc54fd7e175a6f91",
96106
"mac_address": "012345679891",
@@ -134,7 +144,13 @@
134144
"model": "Lisa",
135145
"model_id": "158-01",
136146
"name": "Lisa Badkamer",
137-
"preset_modes": ["no_frost", "asleep", "vacation", "home", "away"],
147+
"preset_modes": [
148+
"no_frost",
149+
"asleep",
150+
"vacation",
151+
"home",
152+
"away"
153+
],
138154
"select_schedule": "Badkamer",
139155
"sensors": {
140156
"battery": 14,

fixtures/m_adam_heating/all_data.json

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@
7575
"model": "ThermoTouch",
7676
"model_id": "143.1",
7777
"name": "Anna",
78-
"preset_modes": ["no_frost", "asleep", "vacation", "home", "away"],
78+
"preset_modes": [
79+
"no_frost",
80+
"asleep",
81+
"vacation",
82+
"home",
83+
"away"
84+
],
7985
"select_schedule": "off",
8086
"sensors": {
8187
"setpoint": 20.0,
@@ -95,14 +101,23 @@
95101
},
96102
"dev_class": "gateway",
97103
"firmware": "3.7.8",
98-
"gateway_modes": ["away", "full", "vacation"],
104+
"gateway_modes": [
105+
"away",
106+
"full",
107+
"vacation"
108+
],
99109
"hardware": "AME Smile 2.0 board",
100110
"location": "bc93488efab249e5bc54fd7e175a6f91",
101111
"mac_address": "012345679891",
102112
"model": "Gateway",
103113
"model_id": "smile_open_therm",
104114
"name": "Adam",
105-
"regulation_modes": ["bleeding_hot", "bleeding_cold", "off", "heating"],
115+
"regulation_modes": [
116+
"bleeding_hot",
117+
"bleeding_cold",
118+
"off",
119+
"heating"
120+
],
106121
"select_gateway_mode": "full",
107122
"select_regulation_mode": "heating",
108123
"sensors": {
@@ -133,7 +148,13 @@
133148
"model": "Lisa",
134149
"model_id": "158-01",
135150
"name": "Lisa Badkamer",
136-
"preset_modes": ["no_frost", "asleep", "vacation", "home", "away"],
151+
"preset_modes": [
152+
"no_frost",
153+
"asleep",
154+
"vacation",
155+
"home",
156+
"away"
157+
],
137158
"select_schedule": "Badkamer",
138159
"sensors": {
139160
"battery": 14,

fixtures/m_adam_jip/all_data.json

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
"model": "Lisa",
1616
"model_id": "158-01",
1717
"name": "Slaapkamer",
18-
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
18+
"preset_modes": [
19+
"home",
20+
"asleep",
21+
"away",
22+
"vacation",
23+
"no_frost"
24+
],
1925
"sensors": {
2026
"battery": 92,
2127
"setpoint": 13.0,
@@ -116,7 +122,13 @@
116122
"model": "Lisa",
117123
"model_id": "158-01",
118124
"name": "Kinderkamer",
119-
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
125+
"preset_modes": [
126+
"home",
127+
"asleep",
128+
"away",
129+
"vacation",
130+
"no_frost"
131+
],
120132
"sensors": {
121133
"battery": 79,
122134
"setpoint": 13.0,
@@ -176,7 +188,13 @@
176188
"model": "Lisa",
177189
"model_id": "158-01",
178190
"name": "Logeerkamer",
179-
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
191+
"preset_modes": [
192+
"home",
193+
"asleep",
194+
"away",
195+
"vacation",
196+
"no_frost"
197+
],
180198
"sensors": {
181199
"battery": 80,
182200
"setpoint": 13.0,
@@ -203,14 +221,23 @@
203221
},
204222
"dev_class": "gateway",
205223
"firmware": "3.2.8",
206-
"gateway_modes": ["away", "full", "vacation"],
224+
"gateway_modes": [
225+
"away",
226+
"full",
227+
"vacation"
228+
],
207229
"hardware": "AME Smile 2.0 board",
208230
"location": "9e4433a9d69f40b3aefd15e74395eaec",
209231
"mac_address": "012345670001",
210232
"model": "Gateway",
211233
"model_id": "smile_open_therm",
212234
"name": "Adam",
213-
"regulation_modes": ["heating", "off", "bleeding_cold", "bleeding_hot"],
235+
"regulation_modes": [
236+
"heating",
237+
"off",
238+
"bleeding_cold",
239+
"bleeding_hot"
240+
],
214241
"select_gateway_mode": "full",
215242
"select_regulation_mode": "heating",
216243
"sensors": {
@@ -294,7 +321,13 @@
294321
"model": "Jip",
295322
"model_id": "168-01",
296323
"name": "Woonkamer",
297-
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
324+
"preset_modes": [
325+
"home",
326+
"asleep",
327+
"away",
328+
"vacation",
329+
"no_frost"
330+
],
298331
"sensors": {
299332
"battery": 100,
300333
"humidity": 56.2,

fixtures/m_adam_multiple_devices_per_zone/all_data.json

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,13 @@
134134
"model": "Lisa",
135135
"model_id": "158-01",
136136
"name": "Zone Thermostat Jessie",
137-
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
137+
"preset_modes": [
138+
"home",
139+
"asleep",
140+
"away",
141+
"vacation",
142+
"no_frost"
143+
],
138144
"select_schedule": "CV Jessie",
139145
"sensors": {
140146
"battery": 37,
@@ -285,7 +291,13 @@
285291
"model": "Lisa",
286292
"model_id": "158-01",
287293
"name": "Zone Lisa WK",
288-
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
294+
"preset_modes": [
295+
"home",
296+
"asleep",
297+
"away",
298+
"vacation",
299+
"no_frost"
300+
],
289301
"select_schedule": "GF7 Woonkamer",
290302
"sensors": {
291303
"battery": 34,
@@ -378,7 +390,13 @@
378390
"model": "Lisa",
379391
"model_id": "158-01",
380392
"name": "Zone Lisa Bios",
381-
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
393+
"preset_modes": [
394+
"home",
395+
"asleep",
396+
"away",
397+
"vacation",
398+
"no_frost"
399+
],
382400
"select_schedule": "off",
383401
"sensors": {
384402
"battery": 67,
@@ -414,7 +432,13 @@
414432
"model": "Tom/Floor",
415433
"model_id": "106-03",
416434
"name": "CV Kraan Garage",
417-
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
435+
"preset_modes": [
436+
"home",
437+
"asleep",
438+
"away",
439+
"vacation",
440+
"no_frost"
441+
],
418442
"sensors": {
419443
"battery": 68,
420444
"setpoint": 5.5,
@@ -459,7 +483,13 @@
459483
"model": "Lisa",
460484
"model_id": "158-01",
461485
"name": "Zone Thermostat Badkamer",
462-
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
486+
"preset_modes": [
487+
"home",
488+
"asleep",
489+
"away",
490+
"vacation",
491+
"no_frost"
492+
],
463493
"select_schedule": "Badkamer Schema",
464494
"sensors": {
465495
"battery": 92,

fixtures/m_anna_heatpump_cooling/all_data.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,24 @@
6060
},
6161
"3cb70739631c4d17a86b8b12e8a5161b": {
6262
"active_preset": "home",
63-
"available_schedules": ["standaard", "off"],
63+
"available_schedules": [
64+
"standaard",
65+
"off"
66+
],
6467
"dev_class": "thermostat",
6568
"firmware": "2018-02-08T11:15:53+01:00",
6669
"hardware": "6539-1301-5002",
6770
"location": "c784ee9fdab44e1395b8dee7d7a497d5",
6871
"mode": "auto",
6972
"model": "ThermoTouch",
7073
"name": "Anna",
71-
"preset_modes": ["no_frost", "home", "away", "asleep", "vacation"],
74+
"preset_modes": [
75+
"no_frost",
76+
"home",
77+
"away",
78+
"asleep",
79+
"vacation"
80+
],
7281
"select_schedule": "standaard",
7382
"sensors": {
7483
"cooling_activation_outdoor_temperature": 21.0,

fixtures/m_anna_heatpump_idle/all_data.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,24 @@
6060
},
6161
"3cb70739631c4d17a86b8b12e8a5161b": {
6262
"active_preset": "home",
63-
"available_schedules": ["standaard", "off"],
63+
"available_schedules": [
64+
"standaard",
65+
"off"
66+
],
6467
"dev_class": "thermostat",
6568
"firmware": "2018-02-08T11:15:53+01:00",
6669
"hardware": "6539-1301-5002",
6770
"location": "c784ee9fdab44e1395b8dee7d7a497d5",
6871
"mode": "auto",
6972
"model": "ThermoTouch",
7073
"name": "Anna",
71-
"preset_modes": ["no_frost", "home", "away", "asleep", "vacation"],
74+
"preset_modes": [
75+
"no_frost",
76+
"home",
77+
"away",
78+
"asleep",
79+
"vacation"
80+
],
7281
"select_schedule": "standaard",
7382
"sensors": {
7483
"cooling_activation_outdoor_temperature": 25.0,

scripts/tests_and_coverage.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,4 @@ if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "fixtures" ] ; then
5151
PYTHONPATH=$(pwd) python3 scripts/manual_fixtures.py
5252
fi
5353
echo "... biome-ing (fixtures and testdata) ..."
54-
./tmp/biome lint fixtures/ tests/data/
55-
#npx prettier --write --list-different --ignore-unknown --log-level silent fixtures/ tests/data
54+
./tmp/biome lint --staged --files-ignore-unknown=true --no-errors-on-unmatched

0 commit comments

Comments
 (0)