mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Update command_sensor.py
This commit is contained in:
parent
d17aa103b4
commit
d0d375d433
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user