mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 15:45:08 +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:
|
||||
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:
|
||||
self._state = True
|
||||
elif value == self._payload_off:
|
||||
|
Reference in New Issue
Block a user