1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

add test for mqtt+json switch

This commit is contained in:
Oliver van Porten
2015-11-20 23:50:46 +01:00
parent 820b2a31b3
commit 427944cc44
2 changed files with 29 additions and 2 deletions

View File

@@ -56,5 +56,4 @@ class TestSensorMQTT(unittest.TestCase):
state = self.hass.states.get('sensor.test')
self.assertEqual('100', state.state)
self.assertEqual('fav unit',
state.attributes.get('unit_of_measurement'))