1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-23 20:39:01 +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:
Pascal Vizeli
2017-06-17 19:03:49 +02:00
committed by Paulus Schoutsen
parent 32a84f1466
commit 2438c6b7c2
12 changed files with 19 additions and 19 deletions

View File

@@ -70,7 +70,7 @@ def test_default_setup(hass, monkeypatch):
light_after_first_command = hass.states.get(DOMAIN + '.test')
assert light_after_first_command.state == 'on'
# also after receiving first command state not longer has to be assumed
assert 'assumed_state' not in light_after_first_command.attributes
assert not light_after_first_command.attributes.get('assumed_state')
# mock incoming command event for this device
event_callback({