Commit f40fca6
feat: add heater support (#835)
* init heater support
* refactoring
* heater continue
* heater continue
* Update __init__.py and test_device_enum_helpers.py
* Update __init__.py
* Update bridge.py, test_device_dataclasses.py, test_udp_datagram_parsing.py, and 2 more files
* refactoring
* refactoring and support turn on and off for heater
* refactoring and add tests
* refactoring and add tests
* refactoring
* add get_heater_state with tests
* fix linting
* Update messages.py
* Update supported.md and get_heater_state_response.txt
* Update scripts.md
* Update scripts.md
* Update usage_api.md
* Update messages.py
* Update bridge.py and __init__.py
* Update test_device_dataclasses.py and test_a_heater_datagram_produces_device.txt
* fix based on requested changes
* fix based on CodeRabbit
* fix tests
* Update control_device.py, test_api_tcp_client.py, test_datagram_state_off_heater.txt, and 1 more file
* Update scripts.md and test_api_tcp_client.py
* Update control_device.py
* Update test_udp_datagram_parsing.py
* fix tests
* Update test_udp_datagram_parsing.py
* Update test_udp_datagram_parsing.py
* Update scripts.md and control_device.py
* Update docs/supported.md
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Signed-off-by: YogevBokobza <[email protected]>
* Update docs/usage_api.md
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Signed-off-by: YogevBokobza <[email protected]>
---------
Signed-off-by: YogevBokobza <[email protected]>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>1 parent f087f18 commit f40fca6
File tree
19 files changed
+481
-50
lines changed- .github/ISSUE_TEMPLATE
- docs
- scripts
- src/aioswitcher
- api
- device
- tests
- testresources
- dummy_responses
- test_device_parsing
- test_udp_datagram_parsing
19 files changed
+481
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
| 426 | + | |
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
| 462 | + | |
461 | 463 | | |
462 | 464 | | |
463 | 465 | | |
| |||
470 | 472 | | |
471 | 473 | | |
472 | 474 | | |
| 475 | + | |
| 476 | + | |
473 | 477 | | |
474 | 478 | | |
475 | 479 | | |
476 | 480 | | |
477 | 481 | | |
478 | 482 | | |
479 | 483 | | |
480 | | - | |
| 484 | + | |
481 | 485 | | |
482 | 486 | | |
483 | 487 | | |
484 | 488 | | |
485 | 489 | | |
486 | 490 | | |
487 | 491 | | |
| 492 | + | |
| 493 | + | |
488 | 494 | | |
489 | 495 | | |
490 | 496 | | |
| |||
501 | 507 | | |
502 | 508 | | |
503 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
504 | 514 | | |
505 | 515 | | |
506 | 516 | | |
| |||
516 | 526 | | |
517 | 527 | | |
518 | 528 | | |
519 | | - | |
| 529 | + | |
520 | 530 | | |
521 | 531 | | |
522 | 532 | | |
| |||
566 | 576 | | |
567 | 577 | | |
568 | 578 | | |
569 | | - | |
| 579 | + | |
570 | 580 | | |
571 | 581 | | |
572 | 582 | | |
| |||
616 | 626 | | |
617 | 627 | | |
618 | 628 | | |
619 | | - | |
| 629 | + | |
620 | 630 | | |
621 | 631 | | |
622 | 632 | | |
| |||
652 | 662 | | |
653 | 663 | | |
654 | 664 | | |
655 | | - | |
| 665 | + | |
656 | 666 | | |
657 | 667 | | |
658 | 668 | | |
| |||
675 | 685 | | |
676 | 686 | | |
677 | 687 | | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
678 | 714 | | |
679 | 715 | | |
680 | 716 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | | - | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
582 | 583 | | |
583 | 584 | | |
584 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
585 | 598 | | |
586 | 599 | | |
587 | 600 | | |
| |||
671 | 684 | | |
672 | 685 | | |
673 | 686 | | |
| 687 | + | |
674 | 688 | | |
675 | 689 | | |
676 | | - | |
| 690 | + | |
677 | 691 | | |
678 | 692 | | |
679 | 693 | | |
| |||
683 | 697 | | |
684 | 698 | | |
685 | 699 | | |
| 700 | + | |
686 | 701 | | |
687 | 702 | | |
688 | | - | |
| 703 | + | |
689 | 704 | | |
690 | 705 | | |
691 | 706 | | |
| |||
889 | 904 | | |
890 | 905 | | |
891 | 906 | | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
892 | 920 | | |
893 | 921 | | |
894 | 922 | | |
| |||
918 | 946 | | |
919 | 947 | | |
920 | 948 | | |
| 949 | + | |
921 | 950 | | |
922 | 951 | | |
923 | 952 | | |
| |||
928 | 957 | | |
929 | 958 | | |
930 | 959 | | |
| 960 | + | |
931 | 961 | | |
932 | 962 | | |
933 | 963 | | |
| |||
1123 | 1153 | | |
1124 | 1154 | | |
1125 | 1155 | | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
1126 | 1168 | | |
1127 | 1169 | | |
1128 | 1170 | | |
| |||
0 commit comments