Franck Nijhof
187b6525b4
Removal of extraneous parenthesis ( #33637 )
2020-04-04 20:08:55 +02:00
Paulus Schoutsen
5092971452
Add brightness light device actions ( #31567 )
2020-02-09 19:47:59 -08:00
Paulus Schoutsen
e9e44dbd97
Fix callback and async ( #31281 )
...
* Fix callback and async
* Fix a return
* Fix test
* Fix mqtt tests
* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Bas Nijholt
2cd55bbb87
Sort imports according to PEP8 for device_automation ( #29707 )
2019-12-09 11:24:49 +01:00
Ville Skyttä
759ad08930
Typing misc fixes ( #27543 )
...
* Make async_get_conditions return type hint more specific
* Exclude script/scaffold/templates/ from pre-commit mypy
2019-10-14 13:03:37 -07:00
Erik Montnemery
0ba4ee1398
Validate generated device actions ( #27262 )
...
* Validate generated actions
* Use hass.services.async_call instead of service.async_call_from_config
2019-10-08 10:06:17 -07:00
Erik Montnemery
dabdf8b577
Validate generated device triggers ( #27264 )
...
* Validate generated trigger
* Update scaffold
2019-10-07 13:09:48 -07:00
Erik Montnemery
5d1dd6390d
Validate generated condition ( #27263 )
2019-10-06 21:06:16 -07:00
Erik Montnemery
cda7692f24
Add support for `for` to binary_sensor, light and switch device conditions ( #27153 )
...
* Add support for `for` to binary_sensor, light and switch device conditions
* Fix typing
* Fixup
* Fixup
2019-10-03 13:29:57 -07:00
Erik Montnemery
3e99743244
Add device trigger support to sensor entities ( #27133 )
...
* Add device trigger support to sensor entities
* Fix typing
* Fix tests, add test helper for comparing lists
2019-10-03 06:14:35 +02:00
Erik Montnemery
65ce3b49c1
Add support for `for` to binary_sensor, light and switch device triggers ( #26658 )
...
* Add support for `for` to binary_sensor, light and switch device triggers
* Add WS API device_automation/trigger/capabilities
2019-10-02 22:14:52 +02:00
Ville Skyttä
f259ff17d5
Type hint additions ( #26831 )
...
* Type hint additions
* Remove optional from sidebar_icon comment
Co-Authored-By: Franck Nijhof <frenck@frenck.nl>
* Remove optional from sidebar_title comment
Co-Authored-By: Franck Nijhof <frenck@frenck.nl>
* Fix issues after rebase and mypy 0.730
2019-09-29 20:07:49 +03:00
Paulus Schoutsen
6fdff9ffab
Reorg device automation ( #26880 )
...
* async_trigger -> async_attach_trigger
* Reorg device automations
* Update docstrings
* Fix types
* Fix extending schemas
2019-09-24 14:57:05 -07:00
Erik Montnemery
504b8c7685
Fix translation, adjust trigger names ( #26635 )
2019-09-17 21:55:01 +02:00
Erik Montnemery
02ded7a4a8
Remove device from device action schema ( #26536 )
2019-09-09 10:40:22 -07:00
Erik Montnemery
b14b14c3c9
Add device automation support to switch entities ( #26466 )
...
* Add device automation support to switch entities
* Update switch translations
* Address review comments
2019-09-09 16:55:47 +02:00