core/tests
Steven Rollason 2b46734bd3
Fix command_template sensor value_template not being used if json_attributes set (#90603)
* Allow value_template to be used if json_attributes set

* Set state to None if no value_template and json_attributes used

* Refactor check for no value_template when json_attributes used

* Updated and additional unit test

* Updated to set _attr_native_value and return if value_template is None

* Update unit test docstring

* Updated test docstring based on feedback
2023-04-06 21:06:31 +02:00
..
auth Cache decode of JWT tokens (#90013) 2023-03-22 16:03:41 -10:00
backports
components Fix command_template sensor value_template not being used if json_attributes set (#90603) 2023-04-06 21:06:31 +02:00
fixtures Unblock JSON CI by fixing improperly indented JSON in test fixture (#88803) 2023-02-26 14:41:16 -06:00
hassfest Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
helpers Allow storing other items than untyped `dict` in `StorageCollection` (#90932) 2023-04-06 10:57:00 -04:00
pylint Remove incorrect ignore in pylint plugin (#90024) 2023-03-27 13:53:14 +02:00
resources
scripts Allow parameterizing YAML config in tests (#87981) 2023-02-20 16:57:12 +01:00
test_util Adjust json imports in tests (#88248) 2023-02-17 19:13:48 +01:00
testing_config Rename custom_jinja to custom_templates (#90473) 2023-03-29 21:58:25 +02:00
util Add preferred wind speed unit to unit systems (#90504) 2023-03-30 12:54:12 +02:00
__init__.py
bandit.yaml
common.py Run pipeline from audio stream function (#90748) 2023-04-04 00:06:51 -04:00
conftest.py Rework MQTT config merging and adding defaults (#90529) 2023-04-04 18:12:18 +02:00
ignore_uncaught_exceptions.py
ruff.toml
syrupy.py Write protect entity options (#90185) 2023-03-28 22:56:51 +02:00
test_bootstrap.py Make bootstrap cancelation safe (#90420) 2023-03-28 11:22:41 -10:00
test_config.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_config_entries.py Make abort_entries_match available in options flow (#90406) 2023-03-29 17:20:51 +02:00
test_core.py Add type hints to tests (#89497) 2023-03-10 12:06:50 +01:00
test_data_entry_flow.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_exceptions.py
test_loader.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_main.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_requirements.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_runner.py Add tmpdir to known fixtures in pylint (#89844) 2023-03-17 10:22:02 +01:00
test_setup.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_test_fixtures.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
typing.py