Skip to content

Commit 421941d

Browse files
authored
Merge pull request #432 from plugwise/remove-last-used
Remove last_used from output
2 parents e31459c + 6f4f85c commit 421941d

File tree

35 files changed

+176
-312
lines changed

35 files changed

+176
-312
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Changelog
22

3-
## Ongoing
3+
## v0.33.2 Bugfix for HA climate
44

5+
- Remove last_used (schedule) from output.
56
- Bugfix for [Core Issue #102204](https://github.com/home-assistant/core/issues/102204)
67
- Add item-count to output
78
- Support python 3.12

fixtures/adam_heatpump_cooling/all_data.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"dev_class": "zone_thermostat",
4646
"firmware": "2016-10-10T02:00:00+02:00",
4747
"hardware": "255",
48-
"last_used": "Werkdag schema",
4948
"location": "b52908550469425b812c87f766fe5303",
5049
"mode": "heat_cool",
5150
"model": "Lisa",
@@ -157,7 +156,6 @@
157156
"dev_class": "zone_thermostat",
158157
"firmware": "2016-10-10T02:00:00+02:00",
159158
"hardware": "255",
160-
"last_used": "Werkdag schema",
161159
"location": "20e735858f8146cead98b873177a4f99",
162160
"mode": "heat_cool",
163161
"model": "Lisa",
@@ -236,7 +234,6 @@
236234
"dev_class": "zone_thermostat",
237235
"firmware": "2016-10-10T02:00:00+02:00",
238236
"hardware": "255",
239-
"last_used": "Werkdag schema",
240237
"location": "e39529c79ab54fda9bed26cfc0447546",
241238
"mode": "heat_cool",
242239
"model": "Lisa",
@@ -366,7 +363,6 @@
366363
"dev_class": "zone_thermostat",
367364
"firmware": "2016-10-10T02:00:00+02:00",
368365
"hardware": "255",
369-
"last_used": "Werkdag schema",
370366
"location": "9a27714b970547ee9a6bdadc2b815ad5",
371367
"mode": "heat_cool",
372368
"model": "Lisa",
@@ -401,7 +397,6 @@
401397
"dev_class": "zone_thermostat",
402398
"firmware": "2016-10-10T02:00:00+02:00",
403399
"hardware": "255",
404-
"last_used": "Werkdag schema",
405400
"location": "93ac3f7bf25342f58cbb77c4a99ac0b3",
406401
"mode": "heat_cool",
407402
"model": "Lisa",
@@ -433,7 +428,6 @@
433428
"active_preset": "away",
434429
"available_schedules": ["Opstaan weekdag", "Werkdag schema", "Weekend"],
435430
"dev_class": "thermostat",
436-
"last_used": "Werkdag schema",
437431
"location": "fa5fa6b34f6b40a0972988b20e888ed4",
438432
"mode": "auto",
439433
"model": "ThermoTouch",
@@ -461,7 +455,6 @@
461455
"dev_class": "zone_thermostat",
462456
"firmware": "2016-10-10T02:00:00+02:00",
463457
"hardware": "255",
464-
"last_used": "Werkdag schema",
465458
"location": "04b15f6e884448288f811d29fb7b1b30",
466459
"mode": "heat_cool",
467460
"model": "Lisa",
@@ -496,7 +489,6 @@
496489
"dev_class": "zone_thermostat",
497490
"firmware": "2016-10-10T02:00:00+02:00",
498491
"hardware": "255",
499-
"last_used": "Werkdag schema",
500492
"location": "a562019b0b1f47a4bde8ebe3dbe3e8a9",
501493
"mode": "auto",
502494
"model": "Lisa",
@@ -532,7 +524,6 @@
532524
"dev_class": "zone_thermostat",
533525
"firmware": "2016-10-10T02:00:00+02:00",
534526
"hardware": "255",
535-
"last_used": "Werkdag schema",
536527
"location": "8cf650a4c10c44819e426bed406aec34",
537528
"mode": "auto",
538529
"model": "Lisa",
@@ -567,7 +558,6 @@
567558
"dev_class": "zone_thermostat",
568559
"firmware": "2016-10-10T02:00:00+02:00",
569560
"hardware": "255",
570-
"last_used": "Werkdag schema",
571561
"location": "5cc21042f87f4b4c94ccb5537c47a53f",
572562
"mode": "auto",
573563
"model": "Lisa",
@@ -600,7 +590,7 @@
600590
"cooling_present": true,
601591
"gateway_id": "7d97fc3117784cfdafe347bcedcbbbcb",
602592
"heater_id": "0ca13e8176204ca7bf6f09de59f81c83",
603-
"item_count": 433,
593+
"item_count": 423,
604594
"notifications": {},
605595
"smile_name": "Adam"
606596
}

fixtures/adam_jip/all_data.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"dev_class": "zone_thermostat",
88
"firmware": "2016-10-27T02:00:00+02:00",
99
"hardware": "255",
10-
"last_used": null,
1110
"location": "06aecb3d00354375924f50c47af36bd2",
1211
"mode": "heat",
1312
"model": "Lisa",
@@ -103,7 +102,6 @@
103102
"dev_class": "zone_thermostat",
104103
"firmware": "2016-10-27T02:00:00+02:00",
105104
"hardware": "255",
106-
"last_used": null,
107105
"location": "d27aede973b54be484f6842d1b2802ad",
108106
"mode": "heat",
109107
"model": "Lisa",
@@ -160,7 +158,6 @@
160158
"dev_class": "zone_thermostat",
161159
"firmware": "2016-10-27T02:00:00+02:00",
162160
"hardware": "255",
163-
"last_used": null,
164161
"location": "d58fec52899f4f1c92e4f8fad6d8c48c",
165162
"mode": "heat",
166163
"model": "Lisa",
@@ -271,7 +268,6 @@
271268
"dev_class": "zone_thermometer",
272269
"firmware": "2020-09-01T02:00:00+02:00",
273270
"hardware": "1",
274-
"last_used": null,
275271
"location": "13228dab8ce04617af318a2888b3c548",
276272
"mode": "heat",
277273
"model": "Jip",
@@ -304,7 +300,7 @@
304300
"cooling_present": false,
305301
"gateway_id": "b5c2386c6f6342669e50fe49dd05b188",
306302
"heater_id": "e4684553153b44afbef2200885f379dc",
307-
"item_count": 219,
303+
"item_count": 215,
308304
"notifications": {},
309305
"smile_name": "Adam"
310306
}

fixtures/adam_multiple_devices_per_zone/all_data.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@
117117
"dev_class": "zone_thermostat",
118118
"firmware": "2016-10-27T02:00:00+02:00",
119119
"hardware": "255",
120-
"last_used": "CV Jessie",
121120
"location": "82fa13f017d240daa0d0ea1775420f24",
122121
"mode": "auto",
123122
"model": "Lisa",
@@ -257,7 +256,6 @@
257256
"dev_class": "zone_thermostat",
258257
"firmware": "2016-08-02T02:00:00+02:00",
259258
"hardware": "255",
260-
"last_used": "GF7 Woonkamer",
261259
"location": "c50f167537524366a5af7aa3942feb1e",
262260
"mode": "auto",
263261
"model": "Lisa",
@@ -341,7 +339,6 @@
341339
"dev_class": "zone_thermostat",
342340
"firmware": "2016-10-27T02:00:00+02:00",
343341
"hardware": "255",
344-
"last_used": "Badkamer Schema",
345342
"location": "12493538af164a409c6a1c79e38afe1c",
346343
"mode": "heat",
347344
"model": "Lisa",
@@ -381,7 +378,6 @@
381378
"dev_class": "thermostatic_radiator_valve",
382379
"firmware": "2019-03-27T01:00:00+01:00",
383380
"hardware": "1",
384-
"last_used": "Badkamer Schema",
385381
"location": "446ac08dd04d4eff8ac57489757b7314",
386382
"mode": "heat",
387383
"model": "Tom/Floor",
@@ -423,7 +419,6 @@
423419
"dev_class": "zone_thermostat",
424420
"firmware": "2016-10-27T02:00:00+02:00",
425421
"hardware": "255",
426-
"last_used": "Badkamer Schema",
427422
"location": "08963fec7c53423ca5680aa4cb502c63",
428423
"mode": "auto",
429424
"model": "Lisa",
@@ -473,7 +468,7 @@
473468
"cooling_present": false,
474469
"gateway_id": "fe799307f1624099878210aa0b9f1475",
475470
"heater_id": "90986d591dcd426cae3ec3e8111ff730",
476-
"item_count": 320,
471+
"item_count": 315,
477472
"notifications": {
478473
"af82e4ccf9c548528166d38e560662a4": {
479474
"warning": "Node Plug (with MAC address 000D6F000D13CB01, in room 'n.a.') has been unreachable since 23:03 2020-01-18. Please check the connection and restart the device."

fixtures/adam_onoff_cooling_fake_firmware/all_data.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
"active_preset": "away",
6666
"available_schedules": ["Opstaan weekdag", "Werkdag schema", "Weekend"],
6767
"dev_class": "thermostat",
68-
"last_used": "Werkdag schema",
6968
"location": "fa5fa6b34f6b40a0972988b20e888ed4",
7069
"mode": "auto",
7170
"model": "ThermoTouch",
@@ -91,7 +90,7 @@
9190
"cooling_present": true,
9291
"gateway_id": "7d97fc3117784cfdafe347bcedcbbbcb",
9392
"heater_id": "0ca13e8176204ca7bf6f09de59f81c83",
94-
"item_count": 56,
93+
"item_count": 55,
9594
"notifications": {},
9695
"smile_name": "Adam"
9796
}

fixtures/adam_plus_anna/all_data.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
"active_preset": "home",
6868
"available_schedules": ["Weekschema"],
6969
"dev_class": "thermostat",
70-
"last_used": "Weekschema",
7170
"location": "009490cc2f674ce6b576863fbb64f867",
7271
"mode": "auto",
7372
"model": "ThermoTouch",
@@ -110,7 +109,7 @@
110109
"cooling_present": false,
111110
"gateway_id": "b128b4bbbd1f47e9bf4d756e8fb5ee94",
112111
"heater_id": "2743216f626f43948deec1f7ab3b3d70",
113-
"item_count": 71,
112+
"item_count": 70,
114113
"notifications": {
115114
"6fb89e35caeb4b1cb275184895202d84": {
116115
"error": "There is no OpenTherm communication with the boiler."

fixtures/adam_plus_anna_copy_with_error_domain_added/all_data.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"active_preset": null,
6565
"available_schedules": ["'S avonds uit"],
6666
"dev_class": "thermostat",
67-
"last_used": "'S avonds uit",
6867
"location": "009490cc2f674ce6b576863fbb64f867",
6968
"mode": "heat",
7069
"model": "ThermoTouch",
@@ -108,7 +107,7 @@
108107
"cooling_present": false,
109108
"gateway_id": "b128b4bbbd1f47e9bf4d756e8fb5ee94",
110109
"heater_id": "2743216f626f43948deec1f7ab3b3d70",
111-
"item_count": 71,
110+
"item_count": 70,
112111
"notifications": {
113112
"3d28a20e17cb47dca210a132463721d5": {
114113
"error": "ZigBee Stick 000D6F000D5A3184 has been unreachable since 05:36 2020-06-18. Please check if the ZigBee Stick is still inserted in the Gateway USB port and restart Gateway by powering it down for a few seconds."

fixtures/adam_plus_anna_new/all_data.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
"active_preset": "asleep",
129129
"available_schedules": ["Weekschema", "Badkamer", "Test"],
130130
"dev_class": "thermostat",
131-
"last_used": "Weekschema",
132131
"location": "f2bf9048bef64cc5b6d5110154e33c81",
133132
"mode": "auto",
134133
"model": "ThermoTouch",
@@ -173,7 +172,6 @@
173172
"dev_class": "zone_thermostat",
174173
"firmware": "2016-10-10T02:00:00+02:00",
175174
"hardware": "255",
176-
"last_used": "Badkamer",
177175
"location": "f871b8c4d63549319221e294e4f88074",
178176
"mode": "auto",
179177
"model": "Lisa",
@@ -217,7 +215,7 @@
217215
"cooling_present": false,
218216
"gateway_id": "da224107914542988a88561b4452b0f6",
219217
"heater_id": "056ee145a816487eaa69243c3280f8bf",
220-
"item_count": 145,
218+
"item_count": 143,
221219
"notifications": {},
222220
"smile_name": "Adam"
223221
}

fixtures/adam_zone_per_device/all_data.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@
117117
"dev_class": "zone_thermostat",
118118
"firmware": "2016-10-27T02:00:00+02:00",
119119
"hardware": "255",
120-
"last_used": "CV Jessie",
121120
"location": "82fa13f017d240daa0d0ea1775420f24",
122121
"mode": "auto",
123122
"model": "Lisa",
@@ -257,7 +256,6 @@
257256
"dev_class": "zone_thermostat",
258257
"firmware": "2016-08-02T02:00:00+02:00",
259258
"hardware": "255",
260-
"last_used": "GF7 Woonkamer",
261259
"location": "c50f167537524366a5af7aa3942feb1e",
262260
"mode": "auto",
263261
"model": "Lisa",
@@ -341,7 +339,6 @@
341339
"dev_class": "zone_thermostat",
342340
"firmware": "2016-10-27T02:00:00+02:00",
343341
"hardware": "255",
344-
"last_used": "Badkamer Schema",
345342
"location": "12493538af164a409c6a1c79e38afe1c",
346343
"mode": "heat",
347344
"model": "Lisa",
@@ -381,7 +378,6 @@
381378
"dev_class": "thermostatic_radiator_valve",
382379
"firmware": "2019-03-27T01:00:00+01:00",
383380
"hardware": "1",
384-
"last_used": "Badkamer Schema",
385381
"location": "446ac08dd04d4eff8ac57489757b7314",
386382
"mode": "heat",
387383
"model": "Tom/Floor",
@@ -423,7 +419,6 @@
423419
"dev_class": "zone_thermostat",
424420
"firmware": "2016-10-27T02:00:00+02:00",
425421
"hardware": "255",
426-
"last_used": "Badkamer Schema",
427422
"location": "08963fec7c53423ca5680aa4cb502c63",
428423
"mode": "auto",
429424
"model": "Lisa",
@@ -473,7 +468,7 @@
473468
"cooling_present": false,
474469
"gateway_id": "fe799307f1624099878210aa0b9f1475",
475470
"heater_id": "90986d591dcd426cae3ec3e8111ff730",
476-
"item_count": 320,
471+
"item_count": 315,
477472
"notifications": {
478473
"af82e4ccf9c548528166d38e560662a4": {
479474
"warning": "Node Plug (with MAC address 000D6F000D13CB01, in room 'n.a.') has been unreachable since 23:03 2020-01-18. Please check the connection and restart the device."

fixtures/anna_elga_2/all_data.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"dev_class": "thermostat",
4141
"firmware": "2018-02-08T11:15:53+01:00",
4242
"hardware": "6539-1301-5002",
43-
"last_used": "Thermostat schedule",
4443
"location": "d3ce834534114348be628b61b26d9220",
4544
"mode": "auto",
4645
"model": "ThermoTouch",
@@ -89,7 +88,7 @@
8988
"cooling_present": false,
9089
"gateway_id": "fb49af122f6e4b0f91267e1cf7666d6f",
9190
"heater_id": "573c152e7d4f4720878222bd75638f5b",
92-
"item_count": 60,
91+
"item_count": 59,
9392
"notifications": {},
9493
"smile_name": "Smile Anna"
9594
}

0 commit comments

Comments
 (0)