1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-13 01:27:08 +00:00

13 Commits

Author SHA1 Message Date
epenet
9d192643ee
Move PluggableAction to trigger helpers ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Joakim Plate <elupus@ecce.se>
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-11-22 11:35:18 +01:00
Marc Mueller
702f8180a6
Use TriggerActionType [l-t] () 2022-08-15 14:00:42 -04:00
epenet
c6bff8ae18
Remove philips_js from mypy ignore list ()
* Remove philips_js from mypy ignore list

* Use class attribute
2022-07-07 22:00:19 +02:00
epenet
caa2412103
Adjust device_automation type hints in philips_js () 2022-05-23 14:57:09 +02:00
epenet
fc84e4061f
Cleanup deprecated async_get_registry in philips_js () 2022-05-18 11:59:13 +02: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
Ville Skyttä
0095c6baeb
Improve device trigger type hinting () 2021-08-22 20:32:50 +02:00
Erik Montnemery
4c9f12b9c5
Correct trace path for trigger with custom id () 2021-06-14 17:09:20 +02:00
Erik Montnemery
76c3058d15
Rename device trigger base schema to DEVICE_TRIGGER_BASE_SCHEMA () 2021-06-10 19:11:38 +02:00
Erik Montnemery
b26779a27a
Add id to automation triggers () 2021-03-31 14:56:04 +02:00
Marc Mueller
3d2b81a401
Update typing 11 () 2021-03-18 13:21:46 +01:00
Joakim Plate
a67b598971
Correct errors found on post merge review in philips_js ()
* Correct missed review changes

* Adjust return value for device trigger

* Drop cannot connect

* Always assume there is a unique id

* No need to yield

* Update homeassistant/components/philips_js/media_player.py

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

* Move typing to init

* Adjust typing instead of returning lambda

* Explicity return None

* Coerce into int

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-12 02:35:29 +01:00
Joakim Plate
8dc06e612f
Add config flow to philips_js ()
* Add config flow to philips_js

* Adjust name of entry to contain serial

* Use device id in event rather than entity id

* Adjust turn on text

* Deprecate all fields

* Be somewhat more explicit in typing

* Switch to direct coordinator access

* Refactor the pluggable action

* Adjust tests a bit

* Minor adjustment

* More adjustments

* Add missing await in update coordinator

* Be more lenient to lack of system info

* Use constant for trigger type and simplify

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-11 21:37:53 +01:00