1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-06 06:59:15 +00:00
Steven Rollason 2b46734bd3
Fix command_template sensor value_template not being used if json_attributes set ()
* 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
..
2023-03-27 21:19:09 +02:00
2023-03-27 21:19:09 +02:00
2023-03-27 21:19:09 +02:00
2023-03-27 21:19:09 +02:00
2023-03-27 21:19:09 +02:00