epenet
2699eb62bd
Rename DOMAIN_DATA HassKey constants to DATA_COMPONENT ( #126746 )
...
* Rename DOMAIN_DATA HassKey constant to DATA
* DATA -> DATA_COMPONENT
2024-09-25 15:53:58 +02:00
G Johansson
93aade6e8e
Change lock state to an enum ( #126379 )
...
* Add new LockState enum for lock states
* Add rest
* Fix insteon tests
* Fix mqtt tests
* Fix tesla_fleet
* Revert back ST_STATE_LOCKED
* Add back constant
2024-09-24 12:30:50 +02:00
epenet
94df0bd5ab
Use HassKey in core components (d-z) ( #126324 )
...
* Use HassKey in core components (d-s)
* Add
* Undo light
* Undo device_tracker
* Undo notify
* Undo sensor
* Undo stt
* Improve
2024-09-21 13:10:14 +02:00
epenet
f65d91f6d2
Refactor PLATFORM_SCHEMA imports in platforms ( #120564 )
2024-06-26 15:44:59 +02:00
Jan Bouwhuis
66faeb28d7
Fix late group platform registration ( #119789 )
...
* Fix late group platform registration
* use a callback instead
* Run thread safe
* Not working domain filter
* Also update if a group has nested group's
* Only update if the siingle state type key could change
* Avoid redundant regisister hooks
* Use set, add comment
* Revert changes
* Keep callback cleanup const
* Cleanup after dependencies
* Preimport and cleanup excluded domains
* Revert test changes as we assume early set up now
* Migrate alarm_control_panel
* Migrate climate
* Migrate cover
* Migrate device_tracker
* Migrate lock
* Migrate media_player
* Migrate person
* Migrate plant
* Migrate vacuum
* Migrate water_heater
* Remove water_heater group_pre_import
* Use Platform enum if possible
* Also use platform enum for excluded domains
* Set registry to self._registry
* move deregistering call back hook to async_added_to_hass
* Add comment
* Do no pass mutable reference to EXCLUDED_DOMAINS
* Remove unneeded type hint
2024-06-18 20:01:16 +02:00
G Johansson
7862596ef3
Add open
state to LockEntity ( #111968 )
...
* Add `open` state to LockEntity
* Add tests
* Fixes
* Fix tests
* strings and icons
* Adjust demo open lock
* Fix lock and tests
* fix import
* Fix strings
* mute ruff
* Change sequence
* Sequence2
* Group on states
* Fix ruff
* Fix tests
* Add more test cases
* Sorting
2024-05-08 20:42:22 +02:00
Jan Bouwhuis
986df70fe3
Refactor group setup ( #116317 )
...
* Refactor group setup
* Add @callback decorator and remove commented out code
* Keep set, add default on state
2024-04-28 16:32:17 +02:00
Marc Mueller
816ce116bf
Remove unnecessary functools.cached_property backport ( #114239 )
2024-04-04 11:24:26 +02:00
Jan Bouwhuis
3dc8df2403
Get ServiceValidationError message from translation cache only ( #113704 )
...
* Get ServiceValidationError message from translation cache only
* Remove message for NotValidPresetModeError
2024-03-18 14:42:21 +01:00
Sid
82a60fe8ad
Enable Ruff RSE ( #113695 )
2024-03-18 00:40:38 +01:00
J. Nick Koston
c3b5e819c5
Fix group loading too late resulting in incorrect state ( #113262 )
2024-03-13 19:18:15 -10:00
Marc Mueller
59a6035d3f
Add empty line after module docstring [j-m] ( #112700 )
2024-03-08 09:01:29 -05:00
Erik Montnemery
c805ea7b4f
Include deprecated constants in wildcard imports ( #107114 )
2024-01-05 11:46:45 +01:00
J. Nick Koston
2b972f6dba
Add deprecation warning for lock supported features when using magic numbers ( #106620 )
2023-12-28 15:03:14 -10:00
G Johansson
8cd0644035
Add translation to ServiceValidationError in Lock ( #105746 )
2023-12-27 12:50:27 +01:00
J. Nick Koston
d1174593f9
Add support for attribute caching to the lock platform ( #106275 )
2023-12-23 11:08:35 +01:00
Robert Resch
491a50a2f1
Deprecate deprecated lock constants ( #106113 )
2023-12-20 18:07:17 +01:00
Erik Montnemery
104bcc64b7
Allow inheriting base component entity descriptions in frozen dataclasses ( #105512 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-15 23:33:50 -10:00
Jan Bouwhuis
7d21ed41a2
Refactor lock default code handling ( #104807 )
2023-12-04 14:59:51 +01:00
Øyvind Matheson Wergeland
5527cbd78a
Fix default lock code for lock services ( #103463 )
...
* verisure: Support default code from lock entity
* Actually use default lock code
* Typing
* Only pass default code if set
* Avoid passing code as empty string
* Simplified code
2023-11-20 22:38:16 +01:00
G Johansson
0bda869553
Lock entity options ( #88139 )
2023-05-08 22:06:11 +02:00
J. Nick Koston
bea81d3f63
Fix lock services not removing entity fields ( #88805 )
2023-02-26 18:59:28 -05:00
G Johansson
2b3e6a4ca8
Change name to entity_id for lock validation error message ( #87574 )
2023-02-09 15:59:30 +01:00
Jan Bouwhuis
b03677db1c
Add validation for lock component ( #85842 )
...
* Add validation for lock integration
* Add LockEntityFeature.OPEN for lock group
* Correct tests google_assistant for extra entity
* Validate feature when registering service
* Update tests
* Add LockFeature.OPEN with group
2023-01-23 13:08:00 +01:00
epenet
a225fc456f
Enforce LockEntityFeature ( #82461 )
2022-11-22 07:15:11 +01:00
epenet
8570d3aabe
Adjust type hints for LockEntityFeature ( #82256 )
2022-11-17 12:47:48 +01:00
epenet
a91abebea8
Use IntFlag for EntityFeature ( #81903 )
2022-11-16 12:43:17 +01:00
epenet
64988521bb
Make use of generic EntityComponent (part 2) ( #78494 )
2022-09-17 18:18:53 +02:00
Franck Nijhof
721db6d962
Add EntityFeature enum to Lock ( #69118 )
2022-04-02 20:57:32 -07:00
Franck Nijhof
cf371ea8dd
Remove deprecated base entity classes ( #61006 )
...
* Remove deprecated base entity classes
* Clean up tests
2021-12-05 13:53:52 +01:00
Marc Mueller
4c68662612
Use assignment expressions 34 ( #58823 )
2021-10-31 19:01:16 +01:00
Marc Mueller
4f8148f9ea
Use assignment expressions 07 ( #57787 )
2021-10-17 20:24:34 +02:00
Franck Nijhof
0b44265232
Add description classes to entity components ( #53521 )
...
* Add description classes to entity components
* An -> A
* Add StateVacuumEntityDescription
2021-07-27 00:22:21 +02:00
J. Nick Koston
9b705ad6df
Update lock entity to support locking, unlocking, jammed ( #51455 )
2021-07-20 18:12:56 +02:00
Franck Nijhof
06c2e541c4
Fully type lock entity component ( #51958 )
2021-06-17 14:28:56 +02:00
Franck Nijhof
927b5361a3
Define LockEntity entity attributes as class variables ( #51909 )
2021-06-17 11:25:33 +02:00
Franck Nijhof
7947946793
Type entry setup/unload for entity components ( #51912 )
2021-06-17 10:10:26 +02: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
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) ( #41600 )
2020-10-12 16:59:05 +02:00
J. Nick Koston
dfc656a2c6
Update lock to use async_add_executor_job ( #41458 )
2020-10-08 09:22:16 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Erik Montnemery
b30d117e7d
Rename LockDevice to LockEntity ( #34594 )
2020-04-25 18:02:41 +02:00
Franck Nijhof
30c6ace0f3
Rewrite MQTT & demo Lock tests ( #33838 )
...
* Refactor tests to remove tests.lock.common
* Remove unused is_locked hass binding
* Import constants via entity component
* Import constants via entity component
* Fix light vs lock in naming
2020-04-10 00:40:51 +02:00
Paulus Schoutsen
e9e44dbd97
Fix callback and async ( #31281 )
...
* Fix callback and async
* Fix a return
* Fix test
* Fix mqtt tests
* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Paulus Schoutsen
9aa02e35a7
Entity Component to no longer generate automatic groups ( #23789 )
2020-01-07 17:30:53 +01:00
Bas Nijholt
3b0f29fe95
sort imports according to PEP8 for lock ( #29663 )
2019-12-09 12:19:11 +01:00
Paulus Schoutsen
02d9ed5e36
Do not select all entities when omitting entity ID in service call ( #29178 )
...
* Do not select all entities when omitting entity ID
* Address comments Matthew
* Require either area_id or entity_id
* Fix tests
* Fix test
2019-12-02 16:23:12 -08:00
Ville Skyttä
d88ca0f5cb
Lint exclusions ( #28655 )
...
* Remove malformed pylint disable markers
* Remove some unused imports
* Remove some unneeded lint exclusions
* Remove more unneeded lint exclusions
* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00
Ville Skyttä
b738082dad
Type check various base components ( #25878 )
...
* Type check various component base classes, disabling bunch of checks for now
* Type hint fixes
* Help mypy out some
* Add more type hints
2019-08-11 20:38:18 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00