Migrate MQTT from jsonpath to templates
This commit is contained in:
parent
d55fda28c2
commit
9a9ecb5916
7 changed files with 30 additions and 46 deletions
|
@ -90,7 +90,7 @@ class TestSensorMQTT(unittest.TestCase):
|
|||
'command_topic': 'command-topic',
|
||||
'payload_on': 'beer on',
|
||||
'payload_off': 'beer off',
|
||||
'state_format': 'json:val'
|
||||
'value_template': '{{ value_json.val }}'
|
||||
}
|
||||
}))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue