mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 23:55:07 +02:00
Update command_sensor.py
This commit is contained in:
@@ -74,7 +74,7 @@ class CommandBinarySensor(BinarySensorDevice):
|
|||||||
|
|
||||||
if self._value_template is not None:
|
if self._value_template is not None:
|
||||||
value = template.render_with_possible_json_value(
|
value = template.render_with_possible_json_value(
|
||||||
self._hass, self.value_template, value, False)
|
self._hass, self._value_template, value, False)
|
||||||
if value == self._payload_on:
|
if value == self._payload_on:
|
||||||
self._state = True
|
self._state = True
|
||||||
elif value == self._payload_off:
|
elif value == self._payload_off:
|
||||||
|
Reference in New Issue
Block a user