add test for mqtt+json switch
This commit is contained in:
parent
820b2a31b3
commit
427944cc44
2 changed files with 29 additions and 2 deletions
|
@ -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'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue