mirror of
https://github.com/elisspace/core.git
synced 2026-10-01 06:49:55 +00:00
Fix attribute entity (#8066)
* Bugfix entity attribute setter * Fix tests * Fix tests part 2 * Change filter only None * Fix tests part 3 * Update entity.py * Fix tests
This commit is contained in:
committed by
Paulus Schoutsen
parent
bf495edbb5
commit
a250f583eb
@@ -36,7 +36,7 @@ class TestLockMQTT(unittest.TestCase):
|
||||
|
||||
state = self.hass.states.get('lock.test')
|
||||
self.assertEqual(STATE_UNLOCKED, state.state)
|
||||
self.assertIsNone(state.attributes.get(ATTR_ASSUMED_STATE))
|
||||
self.assertFalse(state.attributes.get(ATTR_ASSUMED_STATE))
|
||||
|
||||
fire_mqtt_message(self.hass, 'state-topic', 'LOCK')
|
||||
self.hass.block_till_done()
|
||||
|
||||
Reference in New Issue
Block a user