Skip to content

Commit 6243517

Browse files
astrandbfrenck
authored andcommitted
Improve miele climate test coverage (home-assistant#149859)
1 parent ad8ff75 commit 6243517

File tree

5 files changed

+383
-20
lines changed

5 files changed

+383
-20
lines changed

tests/components/miele/fixtures/5_devices.json

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,5 +648,129 @@
648648
},
649649
"batteryLevel": null
650650
}
651+
},
652+
"DummyAppliance_12": {
653+
"ident": {
654+
"type": {
655+
"key_localized": "Device type",
656+
"value_raw": 12,
657+
"value_localized": "Oven"
658+
},
659+
"deviceName": "",
660+
"protocolVersion": 4,
661+
"deviceIdentLabel": {
662+
"fabNumber": "**REDACTED**",
663+
"fabIndex": "16",
664+
"techType": "H7660BP",
665+
"matNumber": "11120960",
666+
"swids": []
667+
},
668+
"xkmIdentLabel": {
669+
"techType": "EK057",
670+
"releaseVersion": "08.32"
671+
}
672+
},
673+
"state": {
674+
"ProgramID": {
675+
"value_raw": 356,
676+
"value_localized": "Defrost",
677+
"key_localized": "Program name"
678+
},
679+
"status": {
680+
"value_raw": 5,
681+
"value_localized": "In use",
682+
"key_localized": "status"
683+
},
684+
"programType": {
685+
"value_raw": 1,
686+
"value_localized": "Program",
687+
"key_localized": "Program type"
688+
},
689+
"programPhase": {
690+
"value_raw": 3073,
691+
"value_localized": "Heating-up phase",
692+
"key_localized": "Program phase"
693+
},
694+
"remainingTime": [0, 5],
695+
"startTime": [0, 0],
696+
"targetTemperature": [
697+
{
698+
"value_raw": 2500,
699+
"value_localized": 25.0,
700+
"unit": "Celsius"
701+
},
702+
{
703+
"value_raw": -32768,
704+
"value_localized": null,
705+
"unit": "Celsius"
706+
},
707+
{
708+
"value_raw": -32768,
709+
"value_localized": null,
710+
"unit": "Celsius"
711+
}
712+
],
713+
"coreTargetTemperature": [
714+
{
715+
"value_raw": -32768,
716+
"value_localized": null,
717+
"unit": "Celsius"
718+
}
719+
],
720+
"temperature": [
721+
{
722+
"value_raw": 1954,
723+
"value_localized": 19.54,
724+
"unit": "Celsius"
725+
},
726+
{
727+
"value_raw": -32768,
728+
"value_localized": null,
729+
"unit": "Celsius"
730+
},
731+
{
732+
"value_raw": -32768,
733+
"value_localized": null,
734+
"unit": "Celsius"
735+
}
736+
],
737+
"coreTemperature": [
738+
{
739+
"value_raw": 2200,
740+
"value_localized": 22.0,
741+
"unit": "Celsius"
742+
}
743+
],
744+
"signalInfo": false,
745+
"signalFailure": false,
746+
"signalDoor": false,
747+
"remoteEnable": {
748+
"fullRemoteControl": true,
749+
"smartGrid": false,
750+
"mobileStart": true
751+
},
752+
"ambientLight": null,
753+
"light": 1,
754+
"elapsedTime": [0, 0],
755+
"spinningSpeed": {
756+
"unit": "rpm",
757+
"value_raw": null,
758+
"value_localized": null,
759+
"key_localized": "Spin speed"
760+
},
761+
"dryingStep": {
762+
"value_raw": null,
763+
"value_localized": "",
764+
"key_localized": "Drying level"
765+
},
766+
"ventilationStep": {
767+
"value_raw": null,
768+
"value_localized": "",
769+
"key_localized": "Fan level"
770+
},
771+
"plateStep": [],
772+
"ecoFeedback": null,
773+
"batteryLevel": null
774+
}
651775
}
652776
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"processAction": [6],
3+
"light": [],
4+
"ambientLight": [],
5+
"startTime": [],
6+
"ventilationStep": [],
7+
"programId": [],
8+
"targetTemperature": [
9+
{
10+
"zone": 1,
11+
"min": 1,
12+
"max": 9
13+
},
14+
{
15+
"zone": 2,
16+
"min": -28,
17+
"max": -14
18+
},
19+
{
20+
"zone": 3,
21+
"min": -30,
22+
"max": -15
23+
}
24+
],
25+
"deviceName": true,
26+
"powerOn": false,
27+
"powerOff": false,
28+
"colors": [],
29+
"modes": [1],
30+
"runOnTime": []
31+
}

tests/components/miele/fixtures/fridge_freezer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@
5353
"value_raw": -1800,
5454
"value_localized": -18.0,
5555
"unit": "Celsius"
56+
},
57+
{
58+
"value_raw": -2500,
59+
"value_localized": -25.0,
60+
"unit": "Celsius"
5661
}
5762
],
5863
"coreTargetTemperature": [],
@@ -68,8 +73,8 @@
6873
"unit": "Celsius"
6974
},
7075
{
71-
"value_raw": -32768,
72-
"value_localized": null,
76+
"value_raw": -2800,
77+
"value_localized": -28.0,
7378
"unit": "Celsius"
7479
}
7580
],

0 commit comments

Comments
 (0)