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:
parent
32a84f1466
commit
2438c6b7c2
12 changed files with 19 additions and 19 deletions
|
@ -72,7 +72,7 @@ class TestTemplateSensor:
|
|||
self.hass.block_till_done()
|
||||
|
||||
state = self.hass.states.get('sensor.test_template_sensor')
|
||||
assert 'icon' not in state.attributes
|
||||
assert state.attributes.get('icon') == ''
|
||||
|
||||
self.hass.states.set('sensor.test_state', 'Works')
|
||||
self.hass.block_till_done()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue