core/tests
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
..
auth Black 2019-07-31 12:25:30 -07:00
components Refactor template components to extract common routines (#27064) 2019-11-25 16:30:49 -08:00
fixtures Allow preset boost for Homematic IP Cloud power switches (#28713) 2019-11-12 11:32:32 +01:00
helpers Add round to half template method (#28948) 2019-11-22 10:08:41 -08:00
mock Black 2019-07-31 12:25:30 -07:00
resources
scripts Lint exclusions (#28655) 2019-11-16 10:22:07 +01:00
test_util Bumps aiohttp to 3.6.0 (#26728) 2019-09-19 20:34:41 +02:00
testing_config Add supported_features to Alarm Control Panel to limit device_actions (#29065) 2019-11-25 15:42:53 -08:00
util Lint exclusions (#28655) 2019-11-16 10:22:07 +01:00
__init__.py
bandit.yaml Add bandit, use to catch known vulnerable XML parsing (#28341) 2019-11-18 09:10:15 +01:00
common.py Lint exclusions (#28655) 2019-11-16 10:22:07 +01:00
conftest.py Add device trigger support to sensor entities (#27133) 2019-10-03 06:14:35 +02:00
test_bootstrap.py Black 2019-07-31 12:25:30 -07:00
test_config.py Add config endpoint for scene (#28429) 2019-11-04 12:38:18 -08:00
test_config_entries.py Reload config entry when entity enabled in entity registry, remove entity if disabled. (#26120) 2019-08-22 19:32:43 -05:00
test_core.py Cleanup coroutine threadsafe (#27080) 2019-10-01 16:59:06 +02:00
test_data_entry_flow.py Black 2019-07-31 12:25:30 -07:00
test_loader.py Black 2019-07-31 12:25:30 -07:00
test_main.py Require Python >= 3.6.1 (#27226) 2019-10-05 12:20:11 -07:00
test_requirements.py Fix flaky test 2019-11-02 21:21:13 -07:00
test_setup.py Check for import errors before validating config (#28395) 2019-10-31 11:38:06 -07:00