hass-core/tests/components/template
Gil Peeters 161c8aada6 Add availability_template to Template Sensor platform (#26516)
* Added availability_template to Template Sensor platform

* Added to test for invalid values in availability_template

* Updated AVAILABILITY_TEMPLATE Rendering error

* Moved const to package Const.py

* Fix import order (pylint)

* Moved availability_template rendering to common loop

* Removed 'Magic' string

* Cleaned up const and compare lowercase result to 'true'

* Device is unavailbale if value template render fails

* Converted test ot Async and fixed states

* Comverted back to using boolean for _availability

* Fixed state check in test
2019-09-24 16:05:19 +02:00
..
__init__.py Consolidate all platforms that have tests (#22109) 2019-03-18 23:07:39 -07:00
test_binary_sensor.py Template binary sensor attributes (#22664) 2019-08-21 14:07:27 -07:00
test_cover.py Black 2019-07-31 12:25:30 -07:00
test_fan.py Black 2019-07-31 12:25:30 -07:00
test_light.py Black 2019-07-31 12:25:30 -07:00
test_lock.py Black 2019-07-31 12:25:30 -07:00
test_sensor.py Add availability_template to Template Sensor platform (#26516) 2019-09-24 16:05:19 +02:00
test_switch.py Black 2019-07-31 12:25:30 -07:00
test_vacuum.py Black 2019-07-31 12:25:30 -07:00