Commit graph

17 commits

Author SHA1 Message Date
avee87
daebc34f4d
Add code_format to template alarm ()
* Added code_format to template alarm

* review comment

* review comment

* use constant

* back to enum

* none -> no_code
2021-09-29 16:59:46 +02:00
Michael
dbefa8fac0
Add strict type annotations to alarm_control_panel ()
* Add strict type annotations

* Apply suggestions

* Type code as optional string
2021-05-23 16:51:40 +01:00
Paulus Schoutsen
3dec394cad
Migrate template to register reload service on async_setup () 2021-03-23 20:35:15 -07:00
tkdrob
2c3a2bd35e
Clean up template () 2021-02-14 12:16:30 +01:00
Jaroslav Hanslík
3e82cc1b4f
Add arming state to template alarm control panel () 2020-10-16 23:01:06 +02:00
J. Nick Koston
810df38f0d
Add the ability to reload light/cover groups from yaml ()
* Add the ability to reload light/cover groups from yaml

Update previous usage to reduce code duplication.

* Fix conflict from rebase
2020-08-25 18:13:43 -05:00
J. Nick Koston
90842fcb84
Support reloading the universal platform () 2020-08-26 00:25:15 +02:00
J. Nick Koston
83b9c6188d
Make template entities reloadable ()
* Make template entities reloadable

* Address review items
2020-08-21 18:31:48 -05:00
J. Nick Koston
796d74886e
Simplify template integration entities () 2020-08-21 14:33:53 +02:00
J. Nick Koston
8813f669c2
Convert template alarm_control_panel to use async_track_template_result ()
* 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
Phil Bruckner
716fa63e73
Update script helper constructor parameters ()
Add domain and make it and name required.

Add optional running_description.
2020-08-12 11:39:05 -05:00
Michaël Arnauts
f09a9abc1c
Add optional unique_id attribute to the template platforms ()
* Add unique_id to template platforms

* Update test_binary_sensor.py

* Update test_binary_sensor.py
2020-08-01 12:45:55 -10:00
J. Nick Koston
44fefb3216
Improve handling of template platforms when entity extraction fails ()
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
Erik Montnemery
6f7f5b4034
Rename AlarmControlPanel to AlarmControlPanelEntity () 2020-04-25 18:05:28 +02:00
Paulus Schoutsen
aaa1d06809
Directly call async_write_ha_state ()
* Directly call async_write_ha_state

* Address comments

* Fix tests
2020-04-01 14:19:51 -07:00
MatthewFlamm
445ef861c0
Add pending to template alarm () 2020-03-19 02:38:24 -05:00
Alistair Galbraith
fe0b537291 Template alarm panel ()
* Added support for template alarm panel

* Rewrote tests in new async format

* Fix stale docstring

* Update to tests, standardization on NAME vs FRIENDLY_NAME
2020-01-09 06:03:26 +01:00