1
0
mirror of https://github.com/home-assistant/core.git synced 2025-09-22 19:39:36 +00:00
Commit Graph

20 Commits

Author SHA1 Message Date
Franck Nijhof
868a5f377f Ruff: isort don't split imports based on trailing comma () 2023-08-10 14:27:03 +02:00
Marc Mueller
2618bfc073 Use EventType for state changed [core] () 2023-07-23 18:10:03 -05:00
Franck Nijhof
d4f69a3652 String formatting and max line length - Part 7 ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-27 11:18:56 +01:00
epenet
7db1f8186c Improve zone typing ()
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-09-12 23:43:21 +02:00
Marc Mueller
453cbc3e14 Use TriggerActionType [core, t-z] () 2022-08-15 18:15:20 +02:00
epenet
5cfb31d28a Adjust device_automation type hints in core components () 2022-05-23 16:07:34 +02:00
Erik Montnemery
cd25769667 Rename async_resolve_entity_ids to async_validate_entity_ids () 2022-03-04 09:51:53 +01:00
Marc Mueller
45d8d04c40 Use assignment expressions [other] () 2022-02-19 17:22:51 +01:00
Erik Montnemery
cf09d1b604 Improve warnings when a zone trigger is referencing a none-existing zone () 2021-12-14 20:14:50 +01:00
Erik Montnemery
5b8d081441 Teach zone trigger about entity registry ids () 2021-12-02 10:28:21 -08:00
Ville Skyttä
b10fc89a6b Automation trigger info type hint improvements ()
* Make automation trigger info a TypedDict

* zwave_js trigger type hint fixes

* Remove redundant automation trigger info field presence checks

* Use async_initialize_triggers in mqtt and tasmota device_trigger tests
2021-09-04 02:25:51 +02:00
Erik Montnemery
4c9f12b9c5 Correct trace path for trigger with custom id () 2021-06-14 17:09:20 +02:00
Erik Montnemery
49bec86dae Add base schema for triggers ()
* Add base schema for triggers

* Tweak

* Make TRIGGER_BASE_SCHEMA a voluptuous schema

* Make state trigger BASE_SCHEMA a voluptuous schema
2021-06-11 09:51:12 +02:00
Erik Montnemery
b26779a27a Add id to automation triggers () 2021-03-31 14:56:04 +02:00
Anders Melchiorsen
e7e3e09063 Raise ConditionError for zone errors ()
* Raise ConditionError for zone errors

* Do not test missing state

* Handle multiple entities/zones
2021-02-19 13:14:47 +01:00
Matthew Donoughe
bc4bbaf6ef Add device trigger support for device trackers ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-09 12:04:16 +01:00
J. Nick Koston
b51a160cce Update triggers to use HassJob ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-10-08 09:44:34 +02:00
Phil Bruckner
e6141ae558 Add description of what caused an automation trigger to fire ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-28 17:02:12 +02:00
Paulus Schoutsen
2a1fe9d29a Add websocket trigger/condition commands () 2020-08-24 23:01:57 +02:00
Phil Bruckner
ca9dd0c833 Reorganize trigger code () 2020-08-17 11:54:56 -05:00