J. Nick Koston and GitHub
53952b9662
Ensure template fan value_template always determines on state ( #47598 )
2021-03-08 18:34:34 +01:00
Ville Skyttä and GitHub
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Erik Montnemery and GitHub
dd9e926689
Pass variables to initial evaluation of template trigger ( #47236 )
...
* Pass variables to initial evaluation of template trigger
* Add test
* Clarify test
2021-03-01 23:34:26 +01:00
0e44d61225
Add weather platform to template domain ( #45031 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2021-02-21 18:08:00 -10:00
f2b303d509
Implement percentage step sizes for fans ( #46512 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
2021-02-18 21:05:09 -10:00
Anders Melchiorsen and GitHub
f8f86fbe48
Do not trigger when template is true at startup ( #46423 )
2021-02-14 19:54:11 +01:00
Erik Montnemery and GitHub
ed31cc363b
Wait for registries to load at startup ( #46265 )
...
* Wait for registries to load at startup
* Don't decorate new functions with @bind_hass
* Fix typing errors in zwave_js
* Load registries in async_test_home_assistant
* Tweak
* Typo
* Tweak
* Explicitly silence mypy errors
* Fix tests
* Fix more tests
* Fix test
* Improve docstring
* Wait for registries to load
2021-02-11 17:36:19 +01:00
J. Nick Koston and GitHub
babfef829d
Add support for percentage speeds and preset modes to template fan ( #45478 )
2021-01-28 10:44:36 +01:00
Franck Nijhof and GitHub
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
035f9412ba
Fix template triggers from time events ( #44603 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
2020-12-29 23:16:39 +01:00
b3be708db6
Add default config if not there ( #43321 )
...
Co-authored-by: Bram Kragten <mail@bramkragten.nl >
2020-11-25 15:10:04 +01:00
Maciej Wilczyński and GitHub
6a5546afc1
Add an option to template delay_on/off in template binary sensor ( #43259 )
2020-11-17 07:24:04 -10:00
J. Nick Koston and GitHub
935c2df7cb
Add a test for template entities that reuse the template ( #42404 )
2020-10-26 16:08:57 +01:00
Paulus Schoutsen and GitHub
5dac3883b0
Stub light profiles ( #42232 )
2020-10-23 16:28:21 +02:00
Philip Allgaier and GitHub
dde6305549
Cleanup unused loggers (components N-Z + tests) ( #41982 )
2020-10-16 21:24:08 -05:00
Jaroslav Hanslík and GitHub
3e82cc1b4f
Add arming state to template alarm control panel ( #41964 )
2020-10-16 23:01:06 +02:00
91042e3e46
Improve template test lock ( #41195 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
2020-10-16 13:25:57 +02:00
sycx2 and GitHub
fc75927d85
Rewrite tests for Template Binary Sensor ( #41098 )
2020-10-12 17:56:08 +02:00
ee914366a8
Add native Python types support to templates ( #41227 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2020-10-07 00:05:52 +02:00
Franck Nijhof and GitHub
357a0e9d7e
Improve switch template tests, remove common test helpers ( #41322 )
2020-10-06 14:54:39 +02:00
sycx2 and GitHub
e813d3ebf9
Improve template test sensor ( #41199 )
2020-10-05 14:52:31 +02:00
J. Nick Koston and GitHub
b1ba1a7134
Verify template sensors that reference other template sensors can reload ( #41031 )
2020-10-02 08:34:33 +02:00
J. Nick Koston and GitHub
deedd41d62
Prevent template loop detection from triggering when all templates are self referencing ( #41013 )
2020-10-01 22:11:11 +02:00
J. Nick Koston and GitHub
b45215f1d2
Implement template rate_limit directive ( #40667 )
2020-10-01 21:39:44 +02:00
Franck Nijhof and GitHub
8837ed35cd
Use direct service calls in tests instead of automation common ( #40623 )
...
* Use direct service calls in tests instead of automation common
* Remove automation common test helpers
2020-09-26 19:28:26 +02:00
J. Nick Koston and GitHub
aaa8083d49
Change template loop detection strategy to allow self-referencing updates when there are multiple templates ( #39943 )
2020-09-12 14:20:21 +02:00
J. Nick Koston and GitHub
fd8a4182d9
Detect self-referencing loops in template entities and log a warning ( #39897 )
2020-09-10 20:50:11 +02:00
J. Nick Koston and GitHub
4bbd69955b
Restore missing device_class to template binary_sensor ( #39805 )
2020-09-08 17:12:23 +02:00
J. Nick Koston and GitHub
0507ec9d8b
Fix cover template entities honoring titlecase True/False ( #39803 )
2020-09-08 17:08:31 +02:00
Franck Nijhof and GitHub
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
J. Nick Koston and GitHub
20398cc0a6
Subscribe to state change events only if the template has entities ( #39188 )
2020-08-26 00:20:04 +02:00
J. Nick Koston and GitHub
83b9c6188d
Make template entities reloadable ( #39075 )
...
* Make template entities reloadable
* Address review items
2020-08-21 18:31:48 -05:00
5db90478f3
Convert template vacuum to use async_track_template_result ( #39047 )
...
* Convert template lock to use async_track_template_result
* Convert template switch to use async_track_template_result
* Convert template fan to use async_track_template_result
* Convert template binary_sensor to use async_track_template_result
Co-Authored-By: Penny Wood <Swamp-Ig@users.noreply.github.com >
* Convert template cover to use async_track_template_result
* Convert template light to use async_track_template_result
* Convert template vacuum to use async_track_template_result
Co-authored-by: Penny Wood <Swamp-Ig@users.noreply.github.com >
2020-08-20 09:30:31 -05:00
5a8013b58c
Convert template binary_sensor to use async_track_template_result ( #39027 )
...
Co-Authored-By: Penny Wood <Swamp-Ig@users.noreply.github.com >
Co-authored-by: Penny Wood <Swamp-Ig@users.noreply.github.com >
2020-08-20 09:07:58 -05:00
J. Nick Koston and GitHub
8813f669c2
Convert template alarm_control_panel to use async_track_template_result ( #39014 )
...
* Convert template lock to use async_track_template_result
* Convert template switch to use async_track_template_result
* Convert template fan to use async_track_template_result
* Convert template alarm_control_panel to use async_track_template_result
2020-08-20 08:54:16 -05:00
J. Nick Koston and GitHub
f3d077c1e1
Convert template fan to use async_track_template_result ( #38983 )
...
* Convert template lock to use async_track_template_result
* Convert template switch to use async_track_template_result
* Convert template fan to use async_track_template_result
2020-08-20 08:53:45 -05:00
J. Nick Koston and GitHub
d7f54ce98f
Convert template lock to use async_track_template_result ( #38946 )
2020-08-20 08:32:52 -05:00
1381b279f0
Update template sensor to use async_track_template_result ( #38940 )
...
* Add template entity
* Update template tracking to work for template sensors
* add test for whitespace
* Update homeassistant/helpers/config_validation.py
* revert
* fix
* reduce
* fix _refresh missing decorator
* defer until start
* do not throw errors during startup
* defer tracking until start event
Co-authored-by: Swamp-Ig <github@ninjateaparty.com >
2020-08-20 08:06:41 -05:00
Phil Bruckner and GitHub
ca9dd0c833
Reorganize trigger code ( #38655 )
2020-08-17 11:54:56 -05:00
5de21375c0
Make sure groups are initialized before template sensors ( #37766 )
...
* Make sure groups are initialized before template sensors
This way users may use the `expand` function in templates to expand
groups and have HA listen for changes to group members.
Fixes #35872
* Patch async_setup_platform instead of async_setup
* Cleanup
* Use an event to avoid sleep
* Update tests/components/template/test_sensor.py
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: J. Nick Koston <nick@koston.org >
2020-08-08 21:34:14 -05:00
Michaël Arnauts and GitHub
f09a9abc1c
Add optional unique_id attribute to the template platforms ( #38011 )
...
* Add unique_id to template platforms
* Update test_binary_sensor.py
* Update test_binary_sensor.py
2020-08-01 12:45:55 -10:00
3ff5c17009
Support unavailable state in template fan ( #38114 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2020-07-24 15:48:07 +02:00
J. Nick Koston and GitHub
44fefb3216
Improve handling of template platforms when entity extraction fails ( #37831 )
...
Most of the the template platforms would check for
extract_entities failing to extract entities and avoid
setting up a state change listner for MATCH_ALL after
extract_entities had warned that it could not extract
the entities and updates would need to be done manually.
This protection has been extended to all template platforms.
Alter the behavior of extract_entities to return the
successfully extracted entities if one or more templates
fail extraction instead of returning MATCH_ALL
2020-07-14 22:34:35 -07:00
akloeckner and GitHub
d0668d3a6c
Add optimistic mode to template switch ( #31637 )
2020-07-06 16:32:33 -07:00
Chris and GitHub
16f1ef5a44
Add attribute templates to template vacuum ( #36518 )
2020-06-22 17:21:20 -07:00
276f3afb00
Do async_setup_platform in background ( #36244 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2020-05-31 22:18:30 -07:00
Martin Hjelmare and GitHub
39431c0764
Add required features to cover service registration ( #35073 )
...
* Fix typing in component service method
* Add required features to cover service registration
* Fix template cover tilt features
* Delint template cover tests
2020-05-03 23:21:12 +02:00
c5d2e44baf
Add white value in light template platform ( #32481 )
...
* Added support for white value in Template Light integration.
* Tests now working.
* Clean up
* Make template more robust
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2020-04-20 14:26:28 +02:00
springstan and GitHub
46bbe816f6
Remove None from dict.get(key, None) ( #33794 )
2020-04-07 21:06:05 +02:00
springstan and GitHub
0d95eff21d
Use dict literals ( #33658 )
2020-04-04 22:31:56 +02:00