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
This commit is contained in:
1 parent
930dadb722
commit
161c8aada6
3 files changed
+96
-12
No files matched your search
@@ -0,0 +1,3 @@
|
||||
"""Constants for the Template Platform Components."""
|
||||
|
||||
CONF_AVAILABILITY_TEMPLATE = "availability_template"
|
||||
Reference in new issue
Block a user