Paulus Schoutsen
e35a5a1a28
Fix other enums in helpers ( #71505 )
2022-05-07 20:57:48 -07:00
Paulus Schoutsen
b1a04302b5
Stringify enums in selectors ( #71441 )
2022-05-06 11:25:01 -07:00
Paulus Schoutsen
c8f95b7dfc
Ignore loading system entity category ( #71361 )
2022-05-05 14:33:37 -07:00
Paulus Schoutsen
353cc0b8c2
Fix importing blueprints ( #71365 )
...
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-05-05 14:33:17 -07:00
Erik Montnemery
eb10654e01
Add test for failing conditions in sub scripts ( #71238 )
2022-05-03 13:06:13 +02:00
Franck Nijhof
99360ad7f4
Indicate disabled steps in script trace ( #71237 )
2022-05-03 13:04:59 +02:00
Erik Montnemery
92f1855bcf
Fix script conditions ( #71235 )
2022-05-03 11:28:08 +02:00
Erik Montnemery
1931600eac
Isolate parallel subscripts ( #71233 )
2022-05-03 10:36:58 +02:00
Erik Montnemery
1aaf78ef99
Remove entity category system in favor of hidden_by ( #68550 )
2022-05-02 09:33:16 -07:00
Erik Montnemery
f35e7d1129
Allow cancelling async_at_start helper ( #71196 )
2022-05-02 07:41:14 -07:00
Erik Montnemery
f6c2fb088c
Stop script if sub-script stops or aborts ( #71195 )
2022-05-02 14:59:58 +02:00
Allen Porter
00b5d30e24
Add application credentials platform ( #69148 )
...
* Initial developer credentials scaffolding
- Support websocket list/add/delete
- Add developer credentials protocol from yaml config
- Handle OAuth credential registration and de-registration
- Tests for websocket and integration based registration
* Fix pydoc text
* Remove translations and update owners
* Update homeassistant/components/developer_credentials/__init__.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Update homeassistant/components/developer_credentials/__init__.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Remove _async_get_developer_credential
* Rename to application credentials platform
* Fix race condition and add import support
* Increase code coverage (92%)
* Increase test coverage 93%
* Increase test coverage (94%)
* Increase test coverage (97%)
* Increase test covearge (98%)
* Increase test coverage (99%)
* Increase test coverage (100%)
* Remove http router frozen comment
* Remove auth domain override on import
* Remove debug statement
* Don't import the same client id multiple times
* Add auth dependency for local oauth implementation
* Revert older oauth2 changes from merge
* Update homeassistant/components/application_credentials/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Move config credential import to its own fixture
* Override the mock_application_credentials_integration fixture instead per test
* Update application credentials
* Add dictionary typing
* Use f-strings as per feedback
* Add additional structure needed for an MVP application credential
Add additional structure needed for an MVP, including a target
component Xbox
* Add websocket to list supported integrations for frontend selector
* Application credentials config
* Import xbox credentials
* Remove unnecessary async calls
* Update script/hassfest/application_credentials.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update script/hassfest/application_credentials.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update script/hassfest/application_credentials.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update script/hassfest/application_credentials.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Import credentials with a fixed auth domain
Resolve an issue with compatibility of exisiting config entries when importing
client credentials
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-30 08:06:43 -07:00
Franck Nijhof
682ac52a20
Support shorthand logical operators in script sequences ( #71022 )
2022-04-29 18:06:21 +02:00
Erik Montnemery
c5d69ab1b2
Handle removed entites in collection.sync_entity_lifecycle ( #70759 )
...
* Handle removed entites in collection.sync_entity_lifecycle
* Add comment
2022-04-27 08:05:00 -07:00
Paulus Schoutsen
5317bf02e6
Fix hidden default ( #70699 )
2022-04-25 10:10:42 -07:00
Erik Montnemery
d045e8678d
Use recorder test fixtures in tests ( #70652 )
2022-04-25 14:23:52 +02:00
Dave T
70e125850c
Limit autogenerated entity_id string length ( #69739 )
2022-04-21 22:39:51 -07:00
Franck Nijhof
7b75a16745
Add visible by default property to base Entity ( #70370 )
2022-04-21 22:06:34 -07:00
Franck Nijhof
35687def02
Merge stop & error script actions ( #70109 )
2022-04-20 14:22:37 -07:00
Thomas Lovén
b50f369fe4
Add shorthand notation for boolean conditions ( #70120 )
2022-04-18 22:09:09 +02:00
Franck Nijhof
ce1f074ca9
Add Template selector ( #70229 )
2022-04-18 11:28:01 -07:00
J. Nick Koston
026e1635cc
Rename async_process_integration_platform to async_process_integration_platform_for_component ( #70217 )
2022-04-17 20:59:31 -10:00
J. Nick Koston
b4ef150339
Add a guard when there are no integration platforms loaded ( #70182 )
2022-04-17 22:45:52 -07:00
J. Nick Koston
42c448c422
Add the ability to process integration platforms on demand ( #70174 )
2022-04-17 00:23:00 -10:00
Raman Gupta
3bcd921a28
Add entity registry helper to update entity platform ( #69162 )
...
* Add entity registry helper to migrate entity to new platform
* Add additional assertion
* Add more properties to migration logic
* Change logic after thinking about erik's comments
* Require new_config_entry_id if entry.config_entry_id is not None
* Create private async_update_entity function that all update functions use
* Don't have special handling for entity ID missing in async_update_entity_platform
* fix docstring
2022-04-16 16:18:52 -04:00
Franck Nijhof
1b48d7eda1
Add for each item support to repeat action ( #70093 )
2022-04-15 19:10:25 +02:00
Franck Nijhof
e04fef3c2d
Allow disabling specific triggers/actions/conditions ( #70082 )
2022-04-15 09:33:09 -07:00
Franck Nijhof
cdabcce83a
Add ability to continue scripts/automations on error ( #70004 )
2022-04-14 13:43:14 -07:00
Franck Nijhof
d704d4f853
Add parallel automation/script actions ( #69903 )
2022-04-13 13:07:44 -07:00
Erik Montnemery
a9742cc445
Drop frontend metadata from entity service schemas ( #69894 )
2022-04-12 18:09:06 +02:00
Franck Nijhof
67b200a532
Add if/else automation/script action ( #69811 )
...
Co-authored-by: Erik <erik@montnemery.com>
2022-04-12 15:02:17 +02:00
Franck Nijhof
81d90b1bc7
Add stop/error script/automation action ( #67340 )
2022-04-11 14:22:22 -07:00
Franck Nijhof
7087020283
Allow any entity to match state condition ( #69763 )
2022-04-11 10:53:42 -07:00
Franck Nijhof
6524dd8fb7
Add support for expanding zones in templates ( #69793 )
2022-04-11 12:59:45 +02:00
Raman Gupta
b325c112b4
Add SelectorType enum and TypedDicts for each selector's data ( #68399 )
...
* rebase off current
* rearrange
* Overload selector function
* Update/fix all selector references
* better typing?
* remove extra option
* move things around
* Switch to Sequence type to avoid ignoring mypy error
* Get rid of ...'s
* Improve typing to reduce number of ignores
* Remove all typing ignores
* Make config optional for selectors that don't need a config
* add missing unit prefixes
* Rename TypedDicts
* Update homeassistant/helpers/selector.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* review feedback
* remove peta from integration integration
* Fix min_max
* Revert change to selector function
* Fix logic
* Add typing for selector classes
* Update selector.py
* Fix indent
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-11 09:20:56 +02:00
J. Nick Koston
fe6a4bfb1d
Remove EVENT_TIME_CHANGED and EVENT_TIMER_OUT_OF_SYNC ( #69643 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-09 09:05:54 -10:00
Allen Porter
c07100e519
Move Local OAuth http endpoint registration to auth component ( #69507 )
2022-04-06 22:34:31 -07:00
Franck Nijhof
b369616aad
Remove deprecated YAML configuration from MJPEG Camera ( #68980 )
2022-04-04 17:57:48 +02:00
J. Nick Koston
c2c6d12d73
Only fire device_registry_updated for suggested_area if the suggestion results in an area change ( #69215 )
2022-04-04 09:51:39 +02:00
epenet
4c7e1fe060
Cleanup ENTITY_CATEGORIES_SCHEMA ( #66549 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-04-01 09:40:43 -07:00
Paulus Schoutsen
130ca2213f
Enforce EntityCategory enum ( #69015 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-31 15:04:33 -07:00
Erik Montnemery
69ee4cd978
Deprecate temperature conversion in base entity class ( #68978 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-31 14:29:44 -07:00
Paulus Schoutsen
5eb19b8a70
Enforce RegistryEntryDisabler enum ( #69017 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-31 13:10:07 -07:00
Raman Gupta
6b2fe6cba9
Add support for new select selector properties ( #68952 )
...
* Add support for new select selector properties
* fix mode option
* Apply suggestions from code review
* Correct validation for empty options, update tests
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-31 11:28:49 +02:00
Erik Montnemery
f9f360c64e
Rename helper_config_entry_flow to schema_config_entry_flow ( #68924 )
2022-03-30 14:36:47 -07:00
Paulus Schoutsen
206ea9d237
Expand group lights/covers etc ( #68875 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-30 10:11:09 +02:00
Erik Montnemery
1746677b61
Clarify duration selector ( #68731 )
2022-03-28 09:28:32 +02:00
Erik Montnemery
0899b67578
Update selectors with frontend changes ( #68623 )
2022-03-26 21:41:39 -07:00
Franck Nijhof
a2a612c640
Add enable_day to duration selector ( #68705 )
2022-03-26 21:31:22 -07:00
Franck Nijhof
d645e80ccd
Clean up async_update_entity helper usage ( #68641 )
2022-03-25 15:22:58 -07:00
Erik Montnemery
76103752b8
Only show light group all option in advanced mode ( #68610 )
2022-03-24 16:51:31 +01:00
Erik Montnemery
eb068bc850
Fix targeting all or none entities in service calls ( #68513 )
...
* Fix targeting all or none entities in service calls
* Add test
2022-03-22 19:45:27 +02:00
Paulus Schoutsen
3213091b8d
Add integration type ( #68349 )
2022-03-20 20:38:13 -07:00
Paulus Schoutsen
929df2bc29
Improve error handling process_play_media_url ( #68322 )
2022-03-20 20:25:15 -07:00
Paulus Schoutsen
8bbbd1947d
Raise if referenced entity does not support service ( #68394 )
2022-03-20 16:01:58 -07:00
Erik Montnemery
cf4033b1bc
Simplify time zone setting in tests ( #68330 )
...
* Simplify timezone setting in tests
* Fix typo
* Adjust caldav tests
* Adjust input_datetime tests
* Adjust time_date tests
* Adjust tod tests
* Adjust helper tests
* Adjust recorder tests
* Adjust risco tests
* Adjust aemet tests
* Adjust flux tests
* Adjust forecast_solar tests
* Revert unnecessary change in forecast_solar test
* Adjust climacell tests
* Adjust google tests
* Adjust sensor tests
* Adjust sonarr tests
* Adjust template tests
* Adjust zodiac tests
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-20 10:25:15 +01:00
Erik Montnemery
d7145095ef
Tweak selectors ( #68267 )
...
* Optionally don't convert output of duration and time selectors
* Allow number selector selection to be None
* Never convert output of duration and time selectors
* Revert "Allow number selector selection to be None"
This reverts commit b6f52c1e83
.
2022-03-18 10:26:05 +01:00
Paulus Schoutsen
ad1e43e083
Add support for variables on trigger ( #68275 )
2022-03-18 09:25:22 +01:00
Erik Montnemery
34eb4aa2d0
Exclude hidden entities from targets ( #68149 )
2022-03-15 08:42:22 -07:00
Erik Montnemery
8ea31cea3a
Fix deadlock when stopping queued script ( #68175 )
2022-03-15 08:29:04 -07:00
Erik Montnemery
1a27025793
Prevent spawning script runs when shutting down ( #68170 )
2022-03-15 12:46:58 +01:00
Erik Montnemery
ee38dbd698
Add helper to set name of helper config entries ( #67950 )
2022-03-10 16:18:26 +01:00
Erik Montnemery
4e7d4db7ae
Align selectors with frontend updates ( #67906 )
...
* Align selectors with frontend updates
* Drop metadata from MediaSelector selection
* Adjust blueprint tests
* Address review comments
* Add tests for new selectors
* Don't stringify input
* Require min+max for number selector in slider mode
* vol.Schema does not like static methods
* Tweak
2022-03-10 16:17:59 +01:00
J. Nick Koston
a75bbc79a2
Prevent polling from recreating an entity after removal ( #67750 )
2022-03-07 20:42:16 -08:00
Erik Montnemery
cd25769667
Rename async_resolve_entity_ids to async_validate_entity_ids ( #67603 )
2022-03-04 09:51:53 +01:00
Richard T. Schaefer
15580281a3
Allow area, device, and entity selectors to optionally support multiple selections like target selector ( #63138 )
...
* Allow area, device, and entity selectors to optionally support multiple selections like target selector
* Update according to code review comments
* Adjust tests
* Update according to review comments
* Tweak error message for multiple entities
Co-authored-by: Erik <erik@montnemery.com>
2022-03-03 10:35:06 +01:00
Mike Degatano
4ea6ca7f91
Prefer internal docker URL for VLC telnet when possible ( #67090 )
2022-03-01 21:56:20 -08:00
Paulus Schoutsen
65eefcacfc
Add support for detecting hostname based addresses as internal ( #67407 )
2022-03-01 16:56:05 -08:00
Franck Nijhof
3afadf8adb
Revert "Block peer certs on supervisor" ( #67104 )
2022-02-23 12:32:07 +01:00
Paulus Schoutsen
938b64081b
Block peer certs on supervisor ( #66837 )
...
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-02-22 13:59:40 -08:00
Paulus Schoutsen
c2e62e4d9f
Re-org device automations ( #67064 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-02-22 13:15:16 -08:00
Paulus Schoutsen
1bbc1f5f55
Validate in split_entity_id ( #66835 )
2022-02-18 16:11:17 -08:00
Erik Montnemery
ec67dcb620
Add support for validating and serializing selectors ( #66565 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-18 14:24:08 -08:00
Dave T
7e3d87a146
Increase helpers.frame test coverage ( #65137 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-02-18 00:05:38 -08:00
Bram Kragten
ef34f070ee
Allow metadata in service call data ( #66672 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Erik <erik@montnemery.com>
2022-02-16 21:13:36 +01:00
Erik Montnemery
dcb3fc49c9
Include changes in EVENT_DEVICE_REGISTRY_UPDATED ( #66641 )
2022-02-16 12:29:08 +01:00
Erik Montnemery
d40a830b89
Remove entities when config entry is removed from device ( #66385 )
...
* Remove entities when config entry is removed from device
* Update tests/helpers/test_entity_registry.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Don't remove entities not connected to a config entry
* Update homeassistant/helpers/entity_registry.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-13 17:23:30 +01:00
Joakim Sørensen
7a40ae13a4
Add guard for invalid EntityCategory value ( #66316 )
2022-02-11 14:57:45 +01:00
Kevin Stillhammer
a0119f7ed0
Resolve zones and return state in find_coordinates ( #66081 )
2022-02-09 10:43:20 +01:00
Paulus Schoutsen
716a1e2a64
Add camera media source ( #65977 )
2022-02-08 14:32:02 -08:00
Erik Montnemery
911e488d48
Fix ENTITY_CATEGORIES_SCHEMA ( #66108 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-08 14:00:53 -08:00
Erik Montnemery
009b31941a
Support restoring SensorEntity native_value ( #66068 )
2022-02-08 14:00:26 -08:00
Tobias Sauerwein
8b38fa58aa
Bump pytest to 7.0.0 ( #65981 )
2022-02-08 10:03:27 +01:00
Paulus Schoutsen
95a890c6e1
Get_url to prefer external URL if SSL configured ( #66039 )
2022-02-07 15:44:02 -08:00
Franck Nijhof
fa09cf663e
Update black to 22.1.0 ( #65788 )
2022-02-05 14:19:37 +01:00
Paulus Schoutsen
a6caf3f579
Call out 3rd party containers more clearly ( #65684 )
2022-02-04 09:57:14 -08:00
mk-maddin
efb6fd1569
Fix script / automation repeat with count 0 fails ( #65448 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-02-03 08:18:58 -08:00
Dave T
bf910229b6
Add test: warn entity_category assigned as str ( #65142 )
2022-01-28 21:46:57 +01:00
Erik Montnemery
dccc4eba76
Remove artifacts from black formatting ( #65113 )
...
* Remove artifacts from black formatting
* Tweak
2022-01-28 17:00:01 +02:00
Erik Montnemery
94288886c3
Abort webhook flow when not connected to home assistant cloud ( #64963 )
2022-01-26 10:57:45 -08:00
J. Nick Koston
2083f0b3c0
Add support for checking if an entity is explicitly included in an entity filter ( #64463 )
2022-01-19 22:38:48 -08:00
Paulus Schoutsen
8d7cca9774
Convert discovery tests to async ( #64411 )
2022-01-19 12:21:15 +01:00
Erik Montnemery
a8c14835b9
Add entity options to entity registry ( #64350 )
...
* Initial commit for entity options
* Tweak broadlink tests
* Add async_update_entity_options + test
2022-01-18 22:47:46 +01:00
epenet
b71a22557d
Use Platform enum in load_platform [tests] ( #63904 )
...
* Use Platform enum in numato tests
* Use Platform enum in discovery tests
* Adjust load_platform argument
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-12 15:07:30 +01:00
Stefan Agner
42706f780c
Convert disabled_by to DeviceEntryDisabler on load ( #63944 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-01-11 20:50:32 -08:00
Petro31
9c6c13a55c
Add is_number as a test for use in select, selectattr, reject, and re… ( #63732 )
2022-01-10 13:00:43 +01:00
Paulus Schoutsen
689504af86
Raise if trying to store mocks in storage ( #63622 )
2022-01-09 21:20:21 -08:00
Erik Montnemery
fc2025509e
Teach call service script action about entity registry ids ( #61172 )
2022-01-07 08:42:47 -08:00
Erik Montnemery
6d57dbde68
Support passing callbacks to start.async_at_start ( #63473 )
...
* Support passing callbacks to start.async_at_start
* Update homeassistant/helpers/start.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Fix imports
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-05 18:04:09 +01:00
avee87
04606f05a4
Use built-in Jinja min and max filters in templates ( #60327 )
...
* Use built-in Jinja min and max filters in templates
* use built-in filter for global
* lint
* less generic name
* more tests
* even more tests
2022-01-04 10:07:23 +01:00
Franck Nijhof
07e034c1c6
Add iif (immediate if) template function/filter ( #61428 )
2021-12-21 17:25:07 +01:00
Erik Montnemery
cbcd6d458e
Assert current state of script condition validation in tests ( #62486 )
2021-12-21 14:10:05 +01:00
Erik Montnemery
e2fca2e305
Support shorthand templates in condition actions ( #61177 )
...
* Support shorthand templates in condition actions
* Fix validation message
* Fix tests
2021-12-21 12:19:31 +01:00
Brynley McDonald
26dc526234
Add slugify as a template filter ( #58724 )
2021-12-21 11:35:54 +01:00
J. Nick Koston
a40549c1b9
Fix hw_version not updating from an entity device_info ( #62254 )
2021-12-18 21:53:49 -08:00
Robert Hillis
626a3f35f5
Use enums in helpers tests ( #62141 )
2021-12-17 11:09:24 +01:00
J. Nick Koston
04153c0075
Add hardware version to the device registry ( #61650 )
2021-12-16 05:16:19 -06:00
Ville Skyttä
5bf67cac66
Use RegistryEntryDisabler ( #60436 )
2021-12-15 23:25:40 +02:00
Ville Skyttä
7db3246de4
Make config entry disabled_by an enum ( #60445 )
...
* Make config entry disabled_by an enum
* Update homeassistant/config_entries.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-12-15 20:53:21 +01:00
epenet
c05eca1c82
Remove log flooding prevention logic from discovery info ( #61243 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:28:26 -10:00
epenet
9f15e7dcf4
Fix flaky tests around frame helper ( #61179 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:50:56 +01:00
epenet
b8b4855b8e
Prevent log flooding in frame helper ( #61085 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-06 15:26:31 -08:00
Paulus Schoutsen
a59ec9ca5e
Handle invalid device registry entry type ( #60966 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-04 09:20:12 +01:00
Erik Montnemery
17dc609363
Correct validation of conditions in scripts and automations ( #60890 )
...
* Correct validation of conditions in scripts and automations
* Fix test
2021-12-03 09:08:28 -08:00
Jan Bouwhuis
3188a364e2
Add template filters pack and unpack ( #60836 )
...
* add pack and unpack template filters
* Add unpack test with offset
* use unpack_from
* Simplify unpack_from statement
2021-12-03 08:58:15 +01:00
Erik Montnemery
9f4a99fe81
Revert "Add bytes support for bitwise template operations" ( #60854 )
2021-12-03 08:50:29 +01:00
Erik Montnemery
0e3bc21d54
Teach state and numeric_state conditions about entity registry ids ( #60841 )
2021-12-02 14:55:12 -08:00
Erik Montnemery
a07f75c6b0
Revert "Allow template int filter to render from a bytes based integer" ( #60855 )
2021-12-02 14:37:19 -08:00
Ville Skyttä
4107063a5a
Make entity registry disabled_by an enum ( #60424 )
2021-12-02 18:02:29 +01:00
Erik Montnemery
c85bb27d0d
Teach state trigger about entity registry ids ( #60271 )
...
* Teach state trigger about entity registry ids
* Tweak
* Add tests
* Tweak tests
* Fix tests
* Resolve entity ids during config validation
* Update device_triggers
* Fix mistake
* Tweak trigger validator to ensure we don't modify the original config
* Add index from entry id to entry
* Update scaffold
* Pre-compile UUID regex
* Address review comment
* Tweak mock_registry
* Tweak
* Apply suggestion from code review
2021-12-02 14:26:45 +01:00
Joakim Plate
c54ca7941f
Make sure entity inherit disabled device ( #60469 )
2021-12-01 13:59:57 -08:00
Franck Nijhof
c28b45cd83
Migrate entity categories to StrEnum ( #60720 )
2021-12-01 13:54:36 +01:00
Jan Bouwhuis
f07e676c82
Allow template int filter to render from a bytes based integer ( #60452 )
...
* Allow template int to render bytes
* re-triggering tests
* Add warning when base !=10 and rendering bytes
* re-trigger tests
* Re-trigger tests
* remove period
* Update homeassistant/helpers/template.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Fix logger syntax
* remove parentheses
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-30 15:01:43 +01:00
epenet
ec1c52d945
Use dataclass for SsdpServiceInfo ( #59931 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-29 06:10:07 -10:00
Erik Montnemery
caf5ee2fab
Remove optional validation when creating conditions ( #60481 )
2021-11-28 14:54:07 +01:00
Erik Montnemery
ea102f71a6
Correct validation of repeats in scripts and automations ( #60318 )
...
* Correct validation of repeats in scripts and automations
* Improve validation test
2021-11-26 14:12:59 +01:00
epenet
75057949d1
Adjust async_step_discovery methods for BaseServiceInfo ( #60285 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-24 19:30:02 -06:00
Ville Skyttä
9f4de8df18
Make device entry disabled by an enum ( #60239 )
2021-11-24 22:32:16 +01:00
Erik Montnemery
7b57033265
Correct today_at template function / filter ( #60291 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-11-24 15:51:43 +01:00
Jan Bouwhuis
d33457b7bc
Add bytes support for bitwise template operations ( #60211 )
...
* Add bytes support for bitwise template operations
* spelling
* Update bitwise tests
* remove try block for bytes conversion
* do not accept empty `bytes` object
2021-11-24 15:15:27 +01:00
Jan Bouwhuis
d41d223033
Add UNIX timestamp detection to `as_datetime` template filter ( #60126 )
2021-11-24 09:51:56 +01:00
Jan Bouwhuis
fa0d3a6c48
Change output template filters `timestamp_local` and `timestamp_utc` to isoformat ( #60269 )
2021-11-24 09:49:03 +01:00
Erik Montnemery
c0d2a66609
Add stable ID to entity registry entries ( #60218 )
...
* Add UUID to entity registry entries
* Fix test
2021-11-24 09:01:35 +01:00
Erik Montnemery
24779dea3b
Bump device registry version to 1.2 ( #60199 )
2021-11-23 22:22:15 +01:00
Ville Skyttä
39691faccc
Use DeviceEntryType in non-typechecked code too ( #58646 )
2021-11-23 10:04:33 +01:00
Erik Montnemery
ca20fc857f
Remove via_device links when a device is removed ( #60153 )
...
* Remove via_device links when a device is removed
* Update test
2021-11-23 09:36:03 +01:00
Erik Montnemery
39d6aba3bc
Improve startup of unavailable template entities ( #59827 )
2021-11-22 09:20:38 -08:00
Ville Skyttä
053c456199
Change device entry type to an StrEnum ( #59940 )
...
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-11-22 18:14:15 +01:00
Erik Montnemery
49a27e12ad
Add support to entity registry for overriding device_class ( #59985 )
2021-11-22 08:38:06 -08:00
Erik Montnemery
0df2904b89
Improve some entity registry tests ( #59902 )
2021-11-22 10:24:37 +01:00
Marcel van der Veldt
902da4daf8
Add integration_entities template helper ( #59841 )
2021-11-20 14:43:31 -08:00
Erik Montnemery
c557da028a
Bump entity_registry store version to 1.2 ( #59912 )
...
* Bump entity_registry store version to 1.2
* Migrate also when importing yaml
* Adjust tests
* Satisfy pylint
* Fix typing
2021-11-19 14:25:34 +01:00
rianadon
ecf00a1eae
Add accumulated precipitation to unit system ( #59657 )
...
* Add accumulated precipitation to unit system
* Fix template test
* Fix typo of testing pressure instead of precipitation
* Add extra arguments so unit system test passes
2021-11-19 09:18:44 +01:00
Paulus Schoutsen
442597928e
Store: copy pending data ( #59934 )
2021-11-18 15:56:22 -08:00
Erik Montnemery
d18c250acf
Add minor version support to storage.Store ( #59882 )
2021-11-18 17:15:40 +01:00
rianadon
7cc7bbb76d
Add speed to units system ( #58437 )
...
* Use speed units in unit system
* Use more obvious conversion factor for unit system speed test
* Use wind_speed instead of speed, use m/s
2021-11-18 16:08:42 +01:00
Erik Montnemery
acf58111c6
Correct initial update of async_track_template_result ( #59705 )
2021-11-15 13:00:46 +01:00
Joakim Sørensen
f596cb19fd
Handle KeyError in getuser ( #59667 )
2021-11-14 10:53:19 +01:00
Erik Montnemery
ff837c736e
Return False from state conditions on missing attributes ( #59405 )
2021-11-09 11:34:18 +01:00
Chris Browet
4224cb043b
Allow overriding ensure_ascii in the "to_json" template filter ( #54527 )
...
* FIX: "ensureascii" to to_json
* fixup: parameter name
2021-11-08 15:49:10 +01:00