Marc Mueller
1a247f7d1b
Improve `device_automation` typing ( #66621 )
2022-02-17 22:08:43 +01: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
Marc Mueller
3b3e12aaa2
Fix `translation` typing ( #66516 )
2022-02-14 09:23:12 -08:00
Marc Mueller
94cfc89df9
Improve `DiscoveryFlowHandler` typing ( #66511 )
2022-02-14 15:28:52 +01:00
epenet
0a7b1dec7d
Adjust type hint in core add_job ( #66503 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-14 11:13:10 +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
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
w35l3y
076faaa4a4
Add support to reprompt user ( #65256 )
2022-01-31 10:23:26 -08:00
Erik Montnemery
94288886c3
Abort webhook flow when not connected to home assistant cloud ( #64963 )
2022-01-26 10:57:45 -08:00
Marc Mueller
5e633498d2
Enable `no_implicit_reexport` for core files [mypy] ( #63820 )
2022-01-26 10:55:06 +01:00
Erik Montnemery
037621b796
Update _TrackStateChangeFiltered entity listener with new entities ( #64909 )
2022-01-25 18:19:12 +01:00
epenet
f662e8669e
Address late review in entity registry ( #64851 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 22:42:38 +01:00
epenet
3a09090a4b
Drop use of deprecated ENTITY_CATEGORIES ( #64607 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 13:36:42 +01:00
epenet
32d5c8e8ac
Add type hint to RegistryEntry.entity_category ( #64618 )
...
Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 12:51:11 +01:00
Franck Nijhof
176f03d4ac
Allow toggles (switches) state to be None ( #64621 )
2022-01-23 11:31:01 +01: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
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
Erik Montnemery
b3421cf727
Remove Windows workarounds ( #64068 )
2022-01-13 20:41:11 +01:00
epenet
128256a3ee
Fix invalid type hint in discovery async_listen ( #63987 )
...
* Fix invalid type hint in discovery async_listen
* Add setup type hints to sabnzbd
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-13 02:43:43 +01:00
Marc Mueller
8460c2f66d
Improve typing [helpers.entity_registry] ( #63767 )
2022-01-12 14:00:22 +01:00
Marc Mueller
12757a8cd2
Update typing - collections.abc (1) ( #63933 )
...
* Update typing - collections.abc (1)
* Additional typing updates
2022-01-12 07:56:35 +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
Marc Mueller
240c9979c7
Move `disallow-any-generics` to mypy.ini ( #63917 )
2022-01-11 13:33:25 -08:00
Marc Mueller
d3b7bd25ef
Update typing (1) ( #63922 )
2022-01-11 21:26:03 +01:00
epenet
4eae888546
Fix incorrect type hint in config_per_platform helper ( #63890 )
...
* Adjust base helper
* Filter type is not None in mailbox
* Filter empty platforms in device_tracker
* Filter out empty platform in notify
* Filter out empty platform in entity_component
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-11 17:28:37 +01:00
Marc Mueller
021debb5c5
Resolve implicit imports ( #63832 )
2022-01-10 17:10:46 +01:00
Marc Mueller
01baa20671
Fix implicit reexport [dt_util] ( #63829 )
2022-01-10 16:31:23 +01: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
epenet
51292cc135
Fix incorrect type hint in discovery helper ( #63789 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-10 11:14:31 +01:00
epenet
665eeb4b27
Explicitely allow Platform enum in discovery helper ( #63571 )
...
* Adjust Platform type hint in discovery helper
* Adjust amcrest
* Adjust comfoconnect
* Adjust ecovacs
* Adjust egardia
* Rename arguments
* Convert Platform enum to string explicitely
* Revert "Adjust egardia"
This reverts commit ff7b0d6100
.
* Revert "Adjust ecovacs"
This reverts commit 2749045e13
.
* Revert "Adjust comfoconnect"
This reverts commit bfff08f7fc
.
* Undo argument name change and conversion to string
* Remove comment
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-09 06:06:56 +01:00
Marc Mueller
eb2238a9e1
Add types for HassJob [helpers.event] ( #63675 )
2022-01-08 14:26:22 +01:00
Erik Montnemery
fc2025509e
Teach call service script action about entity registry ids ( #61172 )
2022-01-07 08:42:47 -08:00
Marc Mueller
54cb1e7556
Add strict typing to `core.py` (5) - Task ( #63243 )
2022-01-07 16:48:34 +01:00
Marc Mueller
250af90acb
Improve callable typing [helpers.event] ( #63543 )
2022-01-06 21:01:27 -10:00
Marc Mueller
198ade5e2b
Fix typing `TrackTemplateResultListener` [helpers.event] ( #63541 )
2022-01-06 13:43:54 -10: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
Marc Mueller
40262c4763
Fix exception import locations ( #63454 )
2022-01-05 15:00:49 +01:00
Marc Mueller
c384596899
Use SensorDeviceClass in `sensor` and `helpers` packages ( #63452 )
2022-01-05 14:59:51 +01:00
Marc Mueller
b0f72f59da
Use imports from `core` ( #63458 )
2022-01-05 14:55:38 +01:00
Paulus Schoutsen
2b4bb49eb7
Make device tracker entities work better ( #63328 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-04 23:16:43 -08:00
Marc Mueller
3a32fe9a34
Add strict typing to `core.py` (2) - State ( #63240 )
2022-01-04 18:33:56 +01:00
Marc Mueller
fcd80b2ed7
Fix `ensure_list` typing ( #63311 )
2022-01-04 15:23:48 +01:00
Ville Skyttä
5231bc5dcb
Simplify device registry update ( #62868 )
2022-01-04 15:02:11 +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
epenet
9971831b51
Improve typing in core service registration ( #63005 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-30 21:18:10 +01:00
Tobias Sauerwein
2c904c0974
Bump mypy to 0.930 ( #62642 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-12-27 17:55:17 +01:00
Ruslan Sayfutdinov
55f4962c06
Fix pylint plugin which checks relative imports ( #62693 )
2021-12-23 11:14:47 -08:00
Erik Montnemery
cb2c2d98c3
Remove unnecessary checks before calling os.makedirs ( #62576 )
2021-12-23 09:59:31 +01:00
Franck Nijhof
07e034c1c6
Add iif (immediate if) template function/filter ( #61428 )
2021-12-21 17:25:07 +01:00
Erik Montnemery
e48f567176
Wrap shorthand template conditions during schema validation ( #62485 )
2021-12-21 17:20:15 +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
Ville Skyttä
334c6c5c02
Make device automation type an enum ( #62354 )
2021-12-20 19:16:30 +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
Erik Montnemery
112e259437
Fix threading error in scripts with repeat or choose actions ( #62168 )
2021-12-17 11:41:54 +01:00
J. Nick Koston
04153c0075
Add hardware version to the device registry ( #61650 )
2021-12-16 05:16:19 -06:00
Paulus Schoutsen
17cf53677c
Rest fixes ( #61296 )
2021-12-08 14:35:50 -08:00
Erik Montnemery
5256e26b6a
Fix incorrect docstring in automation trace code ( #61168 )
2021-12-07 18:05:41 +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
Franck Nijhof
ffb4b4df96
Only report deprecated device_state_attributes once ( #60980 )
2021-12-04 13:37:42 +01: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
epenet
b65b25c1bb
Move MqttServiceInfo to init.py ( #60905 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-12-03 19:34:48 +01:00
Franck Nijhof
74d1c340d7
Allow use of relative_time as a filter ( #60923 )
2021-12-03 19:30: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
Marvin Wichmann
707fe67c00
Move StrEnum to homeassistant.backports and move Platform to homeassistant.const ( #60880 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-03 09:31:17 +01: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
Franck Nijhof
c8b0a3b667
Revert "Move Platform StrEnum to const" ( #60875 )
2021-12-02 14:19:08 -08:00
Franck Nijhof
6e220d5d17
Move Platform StrEnum to const ( #60857 )
2021-12-02 22:30:52 +01:00
Franck Nijhof
7d3fcfbd30
Add Platform StrEnum to entity_platform ( #60818 )
2021-12-02 09:07:09 -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
Ville Skyttä
e5718ccac4
Add removal versions and backcompat constants for device registry enum changes ( #60421 )
2021-11-29 09:47:14 +01: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
Erik Montnemery
ad9c3a47cf
Correct validation of conditions in scripts and automations ( #60403 )
2021-11-26 13:21:11 +01: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
J. Nick Koston
af51aeb6dc
Show how user input is malformed in the UI on error ( #60057 )
2021-11-23 22:50:54 +01:00
Erik Montnemery
24779dea3b
Bump device registry version to 1.2 ( #60199 )
2021-11-23 22:22:15 +01:00
Ville Skyttä
7c6a72b086
Remove unneeded pylint disables ( #60235 )
2021-11-23 21:40:53 +01:00
epenet
560546f65e
Use dataclass for DhcpServiceInfo ( #60136 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 13:35:53 +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
f510534c58
Bump entity registry version to 1.3 ( #60164 )
2021-11-22 13:38:51 -06: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
Marcel van der Veldt
902da4daf8
Add integration_entities template helper ( #59841 )
2021-11-20 14:43:31 -08:00
Ville Skyttä
f305d99af9
Add integration filtering and error if core options to helpers.frame.report ( #60009 )
...
Reduces some existing and upcoming boilerplate.
2021-11-20 12:53:04 +02: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
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
Erik Montnemery
1609c0cc2c
Sort some entity_registry code ( #59876 )
...
* Sort some entity_registry code
* Sort some more entity_registry code
* Tweak
2021-11-18 11:51:32 +01:00
Simone Chemelli
8a02d87a17
Removed deprecated "device_state_attributes" for Amberelectric ( #59672 )
...
* Removed deprecated "device_state_attributes"
* Cleanup
* Postpone removal
* log deprecation warning
* Update homeassistant/helpers/entity.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-16 16:11:46 +01:00
epenet
4387bbfb94
Adjust async_step_mqtt signature for strict typing ( #59761 )
...
* Add MqttServiceInfo
* Adjust async_step_mqtt signature
* Adjust async_step_mqtt signature
* Adjust components
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-16 13:30:38 +01:00
epenet
476a59d248
Adjust async_step_dhcp signature for strict typing ( #59751 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-16 12:19:50 +01:00
epenet
4d96ca3ddb
Adjust async_step_homekit signature for strict typing ( #59745 )
...
* Use ZeroconfServiceInfo in async_step_homekit
* Update DiscoveryFlowHandler
* Update components
2021-11-15 17:27:04 -06:00
epenet
b3ffc1e183
Adjust async_step_zeroconf signature for strict typing ( #59503 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-15 18:05:45 +01:00
Erik Montnemery
acf58111c6
Correct initial update of async_track_template_result ( #59705 )
2021-11-15 13:00:46 +01:00
J. Nick Koston
96f7b0d910
Use atomicwrites for mission critical core files ( #59606 )
2021-11-15 11:19:31 +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
Erik Montnemery
470b01e4ce
Move async_migration_in_progress ( #59087 )
2021-11-05 10:40:56 +01:00
Erik Montnemery
dc1edc98fc
Remove unused KeywordStyleAdapter ( #59091 )
2021-11-04 20:12:21 -07:00
Erik Montnemery
a62bc6b3b9
Minor tweak of cv.deprecated + cv.removed ( #59095 )
...
* Minor tweak of cv.deprecated + cv.removed
* Satisfy pylint
2021-11-04 19:12:21 +01:00
Jan Bouwhuis
c3fc19915e
Mqtt fan fail deprecated options for classic speeds ( #58992 )
...
* Fail deprecated options
* new removed validator
* correct module_name - add tests
* Add test cant find module cv.removed
* module name from stack+1
* Remove error from log. Just throw.
* assert on thrown exception text
* cleanup formatting remove KeyStyleAdapter
* format the replacement_key and update test
* deprecated vs removed - add raise_if_present opt
* doc string update
* is deprecated
2021-11-04 17:54:27 +01:00
J. Nick Koston
10d6247fee
Bump to aiohttp 3.8.0 ( #58974 )
2021-11-04 10:07:50 -05:00
Robert Hillis
16371e6579
Add missing ZMW currency ( #58959 )
2021-11-02 20:21:56 -07:00
Erik Montnemery
34e5596375
Use async_track_utc_time_change to schedule short term statistics ( #58903 )
2021-11-01 10:49:54 -07:00
Paulus Schoutsen
a122cbab61
Mobile app to update entity registry on re-register sensors ( #58378 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-10-31 20:21:46 -07:00
Marc Mueller
4c68662612
Use assignment expressions 34 ( #58823 )
2021-10-31 19:01:16 +01:00
Marc Mueller
3f1b4906bf
Use assignment expressions 35 ( #58824 )
2021-10-31 18:32:17 +01:00
Marc Mueller
b1d49b3b66
Use assignment expressions 29 ( #58713 )
2021-10-30 16:31:43 +02:00
Marc Mueller
a48ddcadd4
Use assignment expressions 31 ( #58715 )
2021-10-30 16:29:07 +02:00
Erik Montnemery
a0a8b9db26
Add entity category 'system' ( #58595 )
...
* Add entity category 'hidden'
* Update cloud
* Update Google assistant
* Update Alexa
* Fix tests
* Add ENTITY_CATEGORIES constant
* Rename ENTITY_CATEGORY_HIDDEN to ENTITY_CATEGORY_SYSTEM
* Correct import in motioneye
2021-10-28 14:36:41 +02:00
Jesse Hills
ea028e38d5
Allow configuration_url to be removed/nullified from device registry ( #58564 )
...
* Allow configuration_url to be removed from device registry
* Add test
* Check for None before stringifying and url parsing
* Add type to dict to remove mypy error on assigning None
2021-10-28 12:11:54 +02:00
Erik Montnemery
abb84d9756
Serialize dates and times to isoformat ( #58157 )
2021-10-27 10:51:38 -07:00
Paulus Schoutsen
6cd83d1f66
Allow storing picture in area registry ( #58539 )
2021-10-27 10:11:05 -07:00
Erik Montnemery
bed4096430
Allow specifying a super template for async_track_template_result ( #58477 )
2021-10-27 16:07:17 +02:00
Franck Nijhof
bf693e85b1
Revert "Add warning when entity used in template doesn't exist" ( #58527 )
2021-10-27 13:53:26 +02:00
Petro31
11034a93c3
Add average template function and filter ( #57727 )
2021-10-26 22:43:45 +02:00
Paulus Schoutsen
5deeeed672
Add some more required/optional tags to condition schemas ( #58424 )
2021-10-26 17:25:15 +02:00
Joakim Sørensen
d16304a201
Allow homeassistant prefix for device info configuration url ( #58414 )
...
* Allow panel prefix for device info configuration url
* Add to add-ons
* Use homeassistant as the prefix
* Update homeassistant/components/hassio/__init__.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-10-26 10:34:02 +02:00
Chris Browet
e961d92b5e
Allow service data template to return a dict ( #57105 )
2021-10-23 21:10:30 +02:00
avee87
d9b87ee5c5
Add warning when entity used in template doesn't exist ( #57316 )
2021-10-22 20:09:54 +02:00
Raman Gupta
e5255cf21f
Add area_entities and area_devices template functions/filters ( #55228 )
2021-10-22 19:59:01 +02:00
Petro31
806dc51125
Add datetime_today template method ( #57435 )
2021-10-22 19:51:22 +02:00
Erik Montnemery
df1154395e
Revert "Swap order of int template helper kwargs ( #57729 )" ( #58015 )
...
This reverts commit f8dbcb953c
.
2021-10-21 15:03:33 +02:00
Philip Allgaier
8f1ba96d0b
Remove accidental blanks from Shelly trigger type translations ( #58151 )
2021-10-21 08:21:04 +02:00
Erik Montnemery
961ee717ef
Store automation and script traces ( #56894 )
...
* Store automation and script traces
* Pylint
* Deduplicate code
* Fix issues when no stored traces are available
* Store serialized data for restored traces
* Update WS API
* Update test
* Restore context
* Improve tests
* Add new test files
* Rename restore_traces to async_restore_traces
* Refactor trace.websocket_api
* Defer loading stored traces
* Lint
* Revert refactoring which is no longer needed
* Correct order when restoring traces
* Apply suggestion from code review
* Improve test coverage
* Apply suggestions from code review
2021-10-19 10:23:23 +02:00