Files
core/homeassistant/components
Gil Peeters 0088995b98 Refactor template components to extract common routines (#27064)
* Added availability_template to Template Cover platform

* Added availability_template to Template Binary Sensor platform

* Added availability_template to Template Fan platform

* Added availability_template to Template Light platform

* Added availability_template to Template Sensor platform

* Added availability_template to Template Switch platform

* Added availability_template to Template Vacuum platform

* Added availability_template to Template Lock platform

* Added to test for invalid values in availability_template

* Black and Lint fix

* black formatting

* Added to test for invalid values in availability_template

* black

* Added to test for invalid values in availability_template

* Added to test for invalid values in availability_template

* simplified exception handler

* Fixed Entity discovery big and coverage

* Added to test for invalid values in availability_template

* flake8

* fixed component ID in test

* Added to test for invalid values in availability_template

* Added to test for invalid values in availability_template

* Made availability_template redering erorr more concise

* Cleaned template setup

* I'll remember to run black every time one of these days...

* Refactored Template initialisation

* Refactored Template initialisation

* Updated AVAILABILITY_TEMPLATE Rendering error

* Updated AVAILABILITY_TEMPLATE Rendering error

* Updated AVAILABILITY_TEMPLATE Rendering error

* Updated AVAILABILITY_TEMPLATE Rendering error

* Updated AVAILABILITY_TEMPLATE Rendering error

* Updated AVAILABILITY_TEMPLATE Rendering error

* Updated AVAILABILITY_TEMPLATE Rendering error

* Updated AVAILABILITY_TEMPLATE Rendering error

* Moved const to package Const.py

* Moved const to package Const.py

* Moved const to package Const.py

* Moved const to package Const.py

* Moved const to package Const.py

* Moved const to package Const.py

* Moved const to package Const.py

* Moved const to package Const.py

* Fix import order (pylint)

* Fix import order (pylint)

* Fix import order (pylint)

* Fix import order (pylint)

* Fix import order (pylint)

* Fix import order (pylint)

* Fix import order (pylint)

* Fixed linting issues

* Moved availability_template rendering to common loop

* Moved availability_template rendering to common loop

* Moved availability_template rendering to common loop

* Moved availability_template rendering to common loop

* Removed 'Magic' string

* Removed 'Magic' string and removed duplicate code

* Removed 'Magic' string

* Removed 'Magic' string

* Brought contant into line

* Refactored availability_tempalte rendering to common loop

* Removed 'Magic' string

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

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

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

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

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

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

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

* reverted _available back to boolean

* reverted _available back to boolean

* reverted _available back to boolean

* reverted _available back to boolean

* reverted _available back to boolean

* reverted _available back to boolean

* reverted _available back to boolean

* Fixed tests (magic values and state checks)

* Fixed tests (magic values and state checks)

* Fixed tests (async, magic values and state checks)

* Fixed tests (async, magic values and state checks)

* Fixed tests (async, magic values and state checks)

* Fixed tests (async, magic values and state checks)

* Fixed tests (async, magic values and state checks)

* Removed duplicate

* Clean up and remove debug

* Reverted Dev Container Change
2019-11-25 16:30:49 -08:00
..
2019-11-14 00:32:16 +00:00
2019-11-16 10:22:07 +01:00
2019-11-24 00:32:21 +00:00
2019-11-22 00:32:10 +00:00
2019-10-15 17:21:40 +02:00
2019-11-06 00:31:46 +00:00
2019-10-28 14:47:04 +01:00
2019-11-16 10:22:07 +01:00
2019-11-22 00:32:10 +00:00
2019-11-16 10:22:07 +01:00
2019-10-18 15:12:36 +02:00
2019-11-16 10:22:07 +01:00
2019-11-16 10:22:07 +01:00
2019-10-21 00:32:17 +00:00
2019-11-13 00:32:12 +00:00
2019-11-24 00:32:21 +00:00
2019-11-16 10:22:07 +01:00
2019-11-16 10:22:07 +01:00
2019-11-22 15:32:05 +01:00
2019-11-16 10:22:07 +01:00
2019-10-29 00:32:16 +00:00
2019-11-16 10:22:07 +01:00
2019-10-15 17:56:04 +05:30
2019-11-23 14:41:52 +01:00
2019-10-28 23:32:34 -07:00
2019-10-20 20:20:53 +01:00
2019-11-24 00:32:21 +00:00
2019-11-23 09:55:46 +01:00
2019-11-20 22:31:39 -08:00
2019-11-16 10:22:07 +01:00
2019-10-29 00:32:16 +00:00
2019-11-14 00:32:16 +00:00
2019-10-29 00:32:16 +00:00
2019-10-28 13:36:26 -07:00
2019-11-19 13:42:09 -06:00
2019-11-02 12:30:09 -07:00
2019-11-16 10:22:07 +01:00
2019-11-16 10:22:07 +01:00
2019-11-15 00:32:15 +00:00
2019-11-22 00:32:10 +00:00
2019-11-16 10:22:07 +01:00
2019-10-22 00:32:10 +00:00
2019-11-22 00:32:10 +00:00
2019-11-22 00:32:10 +00:00
2019-10-29 00:32:16 +00:00
2019-11-24 00:32:21 +00:00
2019-11-22 00:32:10 +00:00
2019-11-16 10:22:07 +01:00
2019-11-16 10:22:07 +01:00
2019-11-16 10:22:07 +01:00
2019-11-16 10:22:07 +01:00
2019-10-30 09:05:13 -06:00
2019-11-22 00:32:10 +00:00
2019-11-15 00:32:15 +00:00
2019-11-23 11:00:26 +01:00
2019-11-25 23:45:14 +01:00
2019-11-22 00:32:10 +00:00
2019-11-25 15:47:18 -08:00
2019-11-15 00:32:15 +00:00
2019-11-05 02:58:17 +01:00
2019-11-16 10:37:58 +01:00
2019-11-04 09:03:58 +01:00
2019-11-22 00:32:10 +00:00
2019-11-04 09:03:58 +01:00
2019-11-22 00:32:10 +00:00
2019-10-27 10:04:43 +01:00
2019-11-16 10:22:07 +01:00
2019-11-25 09:40:32 +01:00
2019-11-14 12:01:53 +01:00
2019-11-24 00:32:21 +00:00
2019-11-23 23:12:02 +01:00
2019-11-16 10:22:07 +01:00
2019-10-15 00:31:44 +00:00
2019-10-16 00:32:17 +00:00
2019-11-13 00:32:12 +00:00
2019-11-02 00:31:48 +00:00
2019-11-14 00:32:16 +00:00
2019-11-02 21:25:24 -07:00
2019-11-16 09:56:26 +01:00
2019-10-19 12:44:51 -07:00
2019-10-19 11:35:57 -07:00
2019-11-16 10:22:07 +01:00
2019-11-25 14:08:04 +01:00
2019-10-31 12:07:07 -07:00
2019-11-18 00:32:22 +00:00
2019-11-15 05:15:58 +01:00
2019-11-08 17:02:44 +01:00
2019-10-22 23:12:17 -07:00
2019-11-22 00:32:10 +00:00
2019-11-15 00:32:15 +00:00
2019-11-16 10:22:07 +01:00
2019-11-14 00:32:16 +00:00
2019-11-23 23:12:02 +01:00
2019-10-29 00:32:16 +00:00
2019-11-04 09:56:46 +01:00
2019-11-22 00:32:10 +00:00
2019-11-24 00:32:21 +00:00
2019-10-15 00:31:44 +00:00
2019-11-14 00:32:16 +00:00
2019-11-17 15:53:34 +01:00
2019-11-16 10:22:07 +01:00
2019-11-16 10:22:07 +01:00
2019-11-08 10:06:16 +01:00
2019-11-02 12:30:09 -07:00
2019-11-15 00:32:15 +00:00
2019-11-21 00:32:11 +00:00
2019-10-19 00:32:15 +00:00
2019-11-25 15:32:35 -07:00
2019-10-19 11:35:57 -07:00
2019-11-16 10:22:07 +01:00