core/homeassistant/components/command_line
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
..
__init__.py Cleanup command_line (#90268) 2023-03-27 21:19:09 +02:00
binary_sensor.py Cleanup command_line (#90268) 2023-03-27 21:19:09 +02:00
const.py
cover.py Cleanup command_line (#90268) 2023-03-27 21:19:09 +02:00
manifest.json
notify.py Improve notify type hints in integrations (#90034) 2023-03-21 11:40:19 +01:00
sensor.py Fix command_template sensor value_template not being used if json_attributes set (#90603) 2023-04-06 21:06:31 +02:00
services.yaml
switch.py Cleanup command_line (#90268) 2023-03-27 21:19:09 +02:00
utils.py Cleanup command_line (#90268) 2023-03-27 21:19:09 +02:00