Commit graph

1,078 commits

Author SHA1 Message Date
Erik Montnemery
30baf333c3
Improve handling of disabled devices () 2020-12-02 21:20:14 +01:00
Bram Kragten
d93687b5ac
Update area and target selectors add sequence selector ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-12-02 09:30:49 +01:00
Paulus Schoutsen
1c9c99571e
Use !input instead of !placeholder ()
* Use !input instead of !placeholder

* Update input name

* Lint

* Move tests around
2020-12-01 18:21:36 +01:00
Paulus Schoutsen
69710cb664
Base area IDs on initial name () 2020-12-01 12:45:56 +01:00
Paulus Schoutsen
cf5be049b3
Warn when referencing missing devices/areas () 2020-12-01 08:01:27 +01:00
Paulus Schoutsen
a5c79a1f84
Add support for device class in target selector () 2020-11-30 23:35:24 +01:00
Paulus Schoutsen
0de9e8e952
Allow specifying device_id as target () 2020-11-30 14:27:02 +01:00
Paulus Schoutsen
dd513147a5
Add a service target () 2020-11-28 23:33:32 +01:00
Paulus Schoutsen
5b6d9abe2a
Await callbacks to keep cleaner stacktraces () 2020-11-27 17:48:43 +01:00
Paulus Schoutsen
d34753473d
Use run_job for service helper () 2020-11-27 16:12:39 +01:00
Erik Montnemery
a5e5c5c7e6
Exclude disabled entities from async_entries_for_device () 2020-11-27 09:03:44 +01:00
Paulus Schoutsen
f9fa24950b
OAuth2 to use current request header () 2020-11-27 08:55:34 +01:00
Paulus Schoutsen
e1de36fda8
Fix check config () 2020-11-26 22:25:21 +01:00
Paulus Schoutsen
edf70e9f06
Make input_datetime better handle timezones ()
* Make input_datetime better handle timezones

* Improve test coverage

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Revert change to time format

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-11-26 20:20:10 +01:00
Erik Montnemery
dc8364fd3a
Support disabling devices () 2020-11-26 16:45:02 +01:00
Bram Kragten
4aa181416c
Add area selector, remove date selector ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-26 15:44:25 +01:00
Bram Kragten
3767af14f3
Add more selectors () 2020-11-25 20:03:56 +01:00
Paulus Schoutsen
1de2554f70
Tweak template digit detection () 2020-11-25 16:10:33 +01:00
Paulus Schoutsen
b3be708db6
Add default config if not there ()
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-25 15:10:04 +01:00
Paulus Schoutsen
43ba053030
Add support for checking minimum HA version () 2020-11-20 15:24:42 +01:00
Paulus Schoutsen
390668e192
Check config to use config platforms () 2020-11-19 22:05:36 +01:00
Bram Kragten
5dcbb634f6
Fix selector to return the selector type () 2020-11-19 16:48:43 +01:00
Paulus Schoutsen
bae026a6fe
Add support for selectors in services.yaml ()
* Add support for selectors in services.yaml

* Add base schema validation
2020-11-13 22:53:55 +01:00
Paulus Schoutsen
0a717f313e
Improve entity domain validator () 2020-11-13 13:31:43 +01:00
Paulus Schoutsen
8dbd54bed1
Disable parsing scientific/complex number notation in template type () 2020-11-13 13:22:29 +01:00
Paulus Schoutsen
560afc31ad
Use internal url for Squeezebox if possible () 2020-11-11 14:49:08 +01:00
J. Nick Koston
94bf55e29b
Limit concurrency of async_get_integration to avoid creating extra threads ()
* Limit concurrency of async_get_integration to avoid creating extra threads

Since async_get_integration is waiting on the disk most of the time
it would end up creating many new threads because the disk could
not deliver the data in time.

* pylint
2020-11-10 21:34:54 -10:00
Paulus Schoutsen
7745408440
System health improvement () 2020-11-10 23:56:50 +01:00
Erik Montnemery
8a7febcfbe
Improve restore of deleted devices ()
* Improve restore of deleted devices

* Simplify
2020-11-10 22:14:39 +01:00
J. Nick Koston
c7f35b20fb
Make all translations cacheable () 2020-11-09 22:36:45 +01:00
Paulus Schoutsen
aec191b558
Support datetime sensor in time trigger () 2020-11-09 14:50:54 +01:00
J. Nick Koston
b47a5449e3
Ensure storage task loads are always garbage collected () 2020-11-07 06:54:56 -10:00
J. Nick Koston
3ec7258c21
Ensure instances of async_add_entities can be garbage collected () 2020-11-07 06:54:20 -10:00
Anders Melchiorsen
650c57db5b
Fix async_track_utc_time_change firing too early () 2020-11-05 16:34:56 +01:00
Tom Parker-Shemilt
b1ed5a3e79
Fix circular import of config_validation and template () 2020-11-04 19:06:19 -10:00
Paulus Schoutsen
0fb587727c
Add initial blueprint support ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2020-11-02 15:00:13 +01:00
Paulus Schoutsen
1844e30858
Add support for manual updating a data coordinator () 2020-11-02 09:54:08 +01:00
springstan
92379ad8d2
Use list literal without using dict.keys() () 2020-10-30 09:19:13 -05:00
J. Nick Koston
df552f08c3
Purge unused constants from template helper () 2020-10-30 09:29:12 +01:00
J. Nick Koston
2bbd2a6e70
Reduce complexity of storage writes ()
* Reduce complexity of storage writes

* add test

* stop hass

* workaround bad test
2020-10-29 22:35:51 -05:00
J. Nick Koston
7f1683c731
Remove legacy template extract_entities () 2020-10-30 00:06:08 +01:00
J. Nick Koston
c8f00a7b38
Gather all collection listeners and changes at the same time () 2020-10-29 10:06:55 +01:00
springstan
a967f689c7
Remove unnecessary instances of dict.keys() () 2020-10-28 20:43:48 +01:00
J. Nick Koston
94219c2266
Ensure the oauth2 token is refreshed before it is expired ()
The current implementation assumed clocks were in sync and did
not account for the time it took to refresh the token.  A 20
second buffer has been added to ensure that the token is refreshed
before it expires as OAuth2Session.valid_token would assume the
token was still good even though the remote would reject it
and would not refresh because it was not time yet.
2020-10-28 07:47:54 -05:00
Paulus Schoutsen
e21e28e49f
Fix string representation of template result wrappers () 2020-10-28 09:11:08 +01:00
Paulus Schoutsen
d4efa938dd
Improve mqtt test () 2020-10-27 23:22:59 +01:00
Paulus Schoutsen
711b7d4605
Make result wrappers more robust () 2020-10-27 22:51:58 +01:00
J. Nick Koston
5ca4b4cd0f
Set the translations cache under the lock () 2020-10-27 22:02:38 +01:00
Franck Nijhof
45aba9bdf2
Allow skip parsing template result () 2020-10-26 16:01:09 +01:00
Paulus Schoutsen
bba770b411
Fix CI () 2020-10-26 13:36:03 +01:00