Inverting states for opening/closing Homekit covers (#26872)
* Update cover.py * Update test_cover.py
This commit is contained in:
parent
dc229ed569
commit
2ffbe5b99f
2 changed files with 3 additions and 3 deletions
|
@ -93,11 +93,11 @@ async def test_read_window_cover_state(hass, utcnow):
|
|||
|
||||
helper.characteristics[POSITION_STATE].value = 0
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "opening"
|
||||
assert state.state == "closing"
|
||||
|
||||
helper.characteristics[POSITION_STATE].value = 1
|
||||
state = await helper.poll_and_get_state()
|
||||
assert state.state == "closing"
|
||||
assert state.state == "opening"
|
||||
|
||||
helper.characteristics[POSITION_STATE].value = 2
|
||||
state = await helper.poll_and_get_state()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue