mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Allow usage of words domain, service, call_id in service data
This commit is contained in:
@@ -63,8 +63,10 @@ class TestMQTT(unittest.TestCase):
|
||||
self.hass.pool.block_till_done()
|
||||
|
||||
self.assertEqual(1, len(self.calls))
|
||||
self.assertEqual('test-topic', self.calls[0][0].data[mqtt.ATTR_TOPIC])
|
||||
self.assertEqual('test-payload', self.calls[0][0].data[mqtt.ATTR_PAYLOAD])
|
||||
self.assertEqual('test-topic',
|
||||
self.calls[0][0].data['service_data'][mqtt.ATTR_TOPIC])
|
||||
self.assertEqual('test-payload',
|
||||
self.calls[0][0].data['service_data'][mqtt.ATTR_PAYLOAD])
|
||||
|
||||
def test_service_call_without_topic_does_not_publush(self):
|
||||
self.hass.bus.fire(EVENT_CALL_SERVICE, {
|
||||
|
||||
Reference in New Issue
Block a user