Commit graph

10 commits

Author SHA1 Message Date
Bas Nijholt
df85a50f3b Sort imports according to PEP8 for sensor () 2019-12-09 11:57:49 +01:00
Erik Montnemery
475b43500a
Add above and below to sensor condition extra_fields ()
* Add above and below to sensor condition extra_fields

* Change unit_of_measurement to suffix in extra_fields

* Check if sensor has unit when getting capabilities

* Improve tests
2019-10-26 06:55:42 +08:00
Erik Montnemery
4700d647b0 Minor tweaks for sensor device automations ()
* Minor tweaks for sensor device automations

* Change unit_of_measurement to suffix in extra_fields

* Address review comment
2019-10-22 11:40:07 -07:00
Erik Montnemery
7f20210e93 Include unit_of_measurement in sensor device trigger capabilities ()
* Expose unit_of_measurement in sensor device trigger

* Update test
2019-10-08 12:52:25 -07:00
Erik Montnemery
dabdf8b577 Validate generated device triggers ()
* Validate generated trigger

* Update scaffold
2019-10-07 13:09:48 -07:00
Erik Montnemery
b8f41dbb75 Add device condition support to sensor entities ()
* Add device condition support to sensor entities

* Fix typing
2019-10-04 10:11:14 -07:00
Erik Montnemery
89ebc17fb1 Only generate device trigger for sensor with unit () 2019-10-03 13:30:59 -07:00
Erik Montnemery
cda7692f24 Add support for for to binary_sensor, light and switch device conditions ()
* 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
9902209ad2
Add above and below to sensor trigger extra_fields () 2019-10-03 22:17:58 +02:00
Erik Montnemery
3e99743244
Add device trigger support to sensor entities ()
* 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