Commit 3e29b77
Feature/state proxy; require python 3.13 (#192)
* rename services to core, move core.py back under here. didn't make sense as services since we have resources there too
* add priority to handlers finally
* reduce supported versions of python so we can use latest and greatest typing functionality
* add default to TypeVar, remove all StateUnion annotations
* clean up some types
* start working on state proxy
* use type
* Update src/hassette/models/states/base.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* simplify state proxy resource
* add comment about disabling UP040
* remove commented out code
* update lockfile
* Update src/hassette/core/state_proxy.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* rename config/core.py to config.py
* improve logging, add comment about not listening to registry updated event
* rename
* start adding instance level States class
* increase traceback level
* need to wait for new staty proxy to be ready
* add states
* start using self.states
* add state proxy to harness, use when app handler is used
* ensure we don't add state of None to dict
* start of tests for states/state_proxy by codex
* add method to get listeners by owner
* add classmethod to get domain from domain field
* fix mess of tests
* remove unused topic
* add back another test
* few more minor improvements
* remove old homeassistant docker compose and files
* remove entity updated registry event
* separate out DI annotations that can return None/MISSING_VALUE and those that cannot. add new exceptions. raise if type doesn't match, allow override in config
* add value as alias choice for value, in case we are getting it by converting a BaseState to a more specific one
* use Maybe DI annotations
* correct annotation type
* remove KnownType types, weren't being used any longer
* add more tests
* specific is None check
* get rid of AppMeta and move validate_app to load_app_class
* fix: fix bug where changed app was not re-imported
* bit more cleanup of method and comments
* ignore out of order events
* add more properties, make state_proxy private
* add test that we have full coverage of domains, fix missing domains
* fix failign tests
* update changelog
* update changelog
* add missing domains to states
* update documentation + add documentation for states
* bump minor version and update changelog
* Update src/hassette/bus/utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update src/hassette/bus/utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 2fae50e commit 3e29b77
File tree
100 files changed
+3566
-1724
lines changed- .github/workflows
- docs/pages
- core-concepts
- api
- configuration
- states
- getting-started
- examples/apps
- src/hassette
- api
- app
- bus
- config
- core
- dependencies
- events/hass
- models/states
- scheduler
- test_utils
- types
- utils
- tests
- data
- fixtures
- volumes/config
- .storage
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
100 files changed
+3566
-1724
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
10 | 19 | | |
11 | 20 | | |
12 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
13 | 39 | | |
14 | 40 | | |
15 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | 113 | | |
115 | 114 | | |
116 | 115 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
639 | 640 | | |
640 | 641 | | |
641 | 642 | | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
| 643 | + | |
646 | 644 | | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
| 645 | + | |
| 646 | + | |
651 | 647 | | |
652 | | - | |
653 | | - | |
654 | | - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
655 | 651 | | |
656 | 652 | | |
| 653 | + | |
657 | 654 | | |
658 | 655 | | |
659 | | - | |
660 | 656 | | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
661 | 675 | | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
662 | 679 | | |
663 | 680 | | |
| 681 | + | |
664 | 682 | | |
665 | 683 | | |
666 | 684 | | |
| |||
916 | 934 | | |
917 | 935 | | |
918 | 936 | | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
919 | 940 | | |
920 | 941 | | |
921 | 942 | | |
922 | 943 | | |
923 | | - | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
924 | 959 | | |
925 | | - | |
| 960 | + | |
926 | 961 | | |
927 | 962 | | |
928 | 963 | | |
929 | 964 | | |
930 | 965 | | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
931 | 971 | | |
932 | 972 | | |
933 | 973 | | |
| |||
1052 | 1092 | | |
1053 | 1093 | | |
1054 | 1094 | | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | | - | |
359 | | - | |
360 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
361 | 382 | | |
362 | 383 | | |
363 | 384 | | |
| |||
456 | 477 | | |
457 | 478 | | |
458 | 479 | | |
459 | | - | |
| 480 | + | |
460 | 481 | | |
461 | 482 | | |
462 | 483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
14 | | - | |
15 | | - | |
16 | 23 | | |
0 commit comments