mqtt_statestream: Update to append 'state' to topic for future use with mqtt discovery (#9446)

This commit is contained in:
Matt White authored and Paulus Schoutsen committed 2017-09-15 23:05:58 -07:00
1 parent a7bce5f9e6
commit 04bed51277
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -59,7 +59,7 @@ class TestMqttStateStream(object):
mock_state_change_event(self.hass, State(e_id, 'on'))
self.hass.block_till_done()
# Make sure 'on' was published to pub/fake/entity
mock_pub.assert_called_with(self.hass, 'pub/fake/entity', 'on', 1,
True)
# Make sure 'on' was published to pub/fake/entity/state
mock_pub.assert_called_with(self.hass, 'pub/fake/entity/state',
'on', 1, True)
assert mock_pub.called