Fix RFLink restore state (#20588)
* some minor tests refactor * unused import * async/await refactor * Correct tests failures * Restore state bug added call to super().async_added_to_hass() * Show brightness attribute if device supports it * Fix light/test_rflink Dimmable devices defaults to 255 brightness * delete super().device_state_attributes call
This commit is contained in:
1 parent
5f7f7777a0
commit
13421b326b
3 files changed
+18
-1
No files matched your search
@@ -632,7 +632,7 @@ async def test_restore_state(hass, monkeypatch):
|
||||
state = hass.states.get(DOMAIN + '.l4')
|
||||
assert state
|
||||
assert state.state == STATE_OFF
|
||||
assert not state.attributes.get(ATTR_BRIGHTNESS)
|
||||
assert state.attributes[ATTR_BRIGHTNESS] == 255
|
||||
assert state.attributes['assumed_state']
|
||||
|
||||
# test coverage for dimmable light
|
||||
|
||||
Reference in new issue
Block a user