Marc Mueller
b393024acd
Improve collection schema typing ( #120441 )
2024-06-25 18:57:15 +02:00
Erik Montnemery
7e61ec96e7
Make the radius of the home zone configurable ( #119385 )
2024-06-15 13:22:01 +02:00
Sid
b456d97e65
Replace pylint protected-access with Ruff SLF001 ( #115735 )
2024-05-06 20:33:26 +02:00
J. Nick Koston
ca5ed274cb
Deprecate calling async_listen and async_listen_once with run_immediately ( #115169 )
2024-04-08 10:07:54 -10:00
Marc Mueller
0f03079065
Update import for EventStateChangedData [i-z] ( #114900 )
2024-04-04 11:48:29 -10:00
J. Nick Koston
ae640b6e1a
Small cleanups to zone to reduce startup time ( #114587 )
2024-04-01 09:03:59 -10:00
J. Nick Koston
17209525cb
Add run_immediately to the zone core config update async_listen ( #113119 )
...
Calling async_update_config will never suspend but cannot be changed to a callback
function because it would break the collections api
2024-03-11 21:35:53 -04:00
Marc Mueller
3db28d46b2
Replace EventType with Event [t-z] ( #112742 )
2024-03-08 19:37:26 +01:00
Marc Mueller
c773d57d39
Add empty line after module docstring [w-z] ( #112706 )
2024-03-08 10:35:45 -05:00
Jan-Philipp Benecke
3ae056b358
Revert "Remove @bind_hass
from async_active_zone and make callback function" ( #111704 )
...
Revert "Remove `@bind_hass` from async_active_zone and make callback function…"
This reverts commit f85a8c5041
.
2024-02-28 10:51:17 +01:00
Jan-Philipp Benecke
f85a8c5041
Remove @bind_hass
from async_active_zone and make callback function ( #111488 )
2024-02-26 11:57:17 -05:00
J. Nick Koston
29146326fa
Fix zone radius calculation when radius is not 0 ( #110354 )
2024-02-12 19:47:34 +01:00
J. Nick Koston
4ee6735cbb
Small cleanup to zone async_active_zone ( #108629 )
2024-01-21 19:33:05 -10:00
Marc Mueller
4161f53bea
Improve async_track_state_change_filtered
callback typing ( #97134 )
2023-07-24 12:42:29 +02:00
Marc Mueller
797a9c1ead
Improve async_track_state_added/removed_domain
callback typing ( #97126 )
2023-07-24 09:11:41 +02:00
Marc Mueller
77f38e33e5
Import names from typing instead of typing_extensions [3.11] ( #97065 )
2023-07-22 17:03:44 -05:00
J. Nick Koston
b51dcb600e
Avoid enumerating the whole state machine to find zone entities ( #94866 )
2023-06-20 14:48:28 +01:00
J. Nick Koston
10aa49be2b
Speed up async_active_zone by avoiding dict lookups ( #93427 )
...
Speed up async_active_zone by avoding dict lookups
2023-05-25 21:37:18 -04:00
Erik Montnemery
8f8a398631
Support marking an assist pipeline as preferred ( #91418 )
...
* Support marking an assist pipeline as preferred
* Adjust
* Revert unneeded change
* Send preferred pipeline id in pipeline list
* Don't use property functions for the preferred pipeline
2023-04-15 10:05:46 -04:00
Erik Montnemery
59a02cd08c
Allow storing other items than untyped dict
in StorageCollection
( #90932 )
...
Allow storing other items than untyped dict in StorageCollection
2023-04-06 10:57:00 -04:00
Erik Montnemery
fa308d8e10
Drop unused logger argument for StorageCollection() ( #90913 )
2023-04-06 13:28:34 +02:00
Marc Mueller
ea4e2ab4aa
Add Self typing (4) [mypy 1.0] ( #87601 )
2023-02-06 22:30:22 -06:00
epenet
996bcbdac6
Make EntityComponent generic ( #78473 )
2022-09-14 14:16:23 -04:00
Erik Montnemery
b0d033ef29
Add mixin class CollectionEntity for the collection helper ( #77703 )
...
* Add mixin class CollectionEntity for the collection helper
* Improve typing
* Address review comments
* Fix tests
2022-09-03 12:56:49 +02:00
Franck Nijhof
800bf926aa
Add attribute to zone indicating persons in zone ( #69767 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-04-10 23:36:40 -07:00
Franck Nijhof
28d3117a88
Track number of persons in a Zone ( #68473 )
2022-03-21 10:41:55 -07:00
Marc Mueller
ac50248938
Add type ignore error codes [other] ( #66781 )
2022-02-17 23:10:25 -08:00
Paulus Schoutsen
5289935ac1
I zone, you zone, we zoning ( #65344 )
2022-01-31 17:04:46 -08:00
Erik Montnemery
30fd902764
Correct zone state ( #65040 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-27 10:01:09 -08:00
Paulus Schoutsen
b2de177104
Fix circles in person integration ( #64991 )
2022-01-26 10:25:13 -08:00
Erik Montnemery
9ff49e9c3a
Change zone's state to be number of person entities in the zone ( #64910 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-01-26 09:00:43 -08:00
Ville Skyttä
939fde0a50
ConfigType and async_setup/setup type hint improvements ( #54739 )
2021-08-18 13:22:05 +02:00
Michael
9eecd90afc
Add constructor return type in integrations T-Z ( #50899 )
2021-05-20 17:00:19 +02:00
Marc Mueller
f1d48ddfe3
Update pylint to 2.8.0 ( #49637 )
2021-04-24 14:39:24 -10:00
Erik Montnemery
346a724ac3
Mark base components' state_attribute @final, rename others to extra_state_attributes ( #48161 )
...
* Mark base state_attributes @final, rename others to extra_state_attributes
* Fix calendar, update tests
2021-03-21 10:38:24 +01:00
Marc Mueller
dcca29ef68
Update typing 14 ( #48078 )
2021-03-18 15:08:35 +01:00
Franck Nijhof
dd8d4471ec
Postponed evaluation of annotations for integrations ( #46455 )
2021-02-12 18:54:00 +01:00
Paulus Schoutsen
9e07910ab0
Mark entities as unavailable when they are removed but are still registered ( #45528 )
...
* Mark entities as unavailable when they are removed but are still registered
* Add sync_entity_lifecycle to collection helper
* Remove debug print
* Lint
* Fix tests
* Fix tests
* Update zha
* Update zone
* Fix tests
* Update hyperion
* Update rfxtrx
* Fix tests
* Pass force_remove=True from integrations
Co-authored-by: Erik <erik@montnemery.com>
2021-02-08 10:45:46 +01:00
J. Nick Koston
869cb83170
Set should_poll for zone entities ( #43212 )
2020-11-15 11:40:03 -06:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Paulus Schoutsen
2bc533d0cb
Fix logger name ( #38866 )
2020-08-14 13:27:11 +02:00
Daniel Hjelseth Høyer
8943954b18
Prevent unnecessary updates of zone component ( #38167 )
2020-07-24 10:45:34 -10:00
J. Nick Koston
152a80abed
Complete deprecation of hidden attribute (ATTR_HIDDEN) ( #37041 )
2020-06-23 17:05:32 -05:00
Alexei Chetroi
242aff9269
Fix mypy in ci by removing unneeded ignore in zone init ( #32997 )
2020-03-19 10:44:52 -05:00
Paulus Schoutsen
f6ce5f2d05
Fix type
2020-03-18 18:20:04 -07:00
Paulus Schoutsen
5123baba3f
Fix zone config ( #32963 )
...
* Fix zone config
* Add zone as dependency again to device tracker
* Fix tests
2020-03-18 18:14:25 -07:00
Ville Skyttä
05abf37046
Type hint improvements ( #32905 )
...
* Complete helpers.entity_component type hints
* Add discovery info type
2020-03-18 19:27:25 +02:00
Paulus Schoutsen
deda2f86e7
Allow managing Lovelace storage dashboards ( #32241 )
...
* Allow managing Lovelace storage dashboards
* Make sure we do not allow duplicate url paths
* Allow setting sidebar to None
* Fix tests
* Delete storage file on delete
* List all dashboards
2020-02-28 12:43:17 -08:00
Paulus Schoutsen
536b31305a
Support multiple Lovelace dashboards ( #32134 )
...
* Support multiple Lovelace dashboards
* Mark collection maintenance as unfinished
* Fix import
* Add websockets commands for resource management
* Revert "Add websockets commands for resource management"
This reverts commit 7d140b2bcc
.
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-02-25 11:18:21 -08:00
Paulus Schoutsen
00c6f3cb85
Guard for reloading with no zone config ( #31547 )
2020-02-06 10:55:12 -08:00