Skip to content

Commit

Permalink
Added lift and tilt open test to Matter cover
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegorro98 committed May 30, 2023
1 parent 53caeaa commit 33581da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/components/matter/test_cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ async def test_cover_position_aware_tilt(
tilt_position / 100
)


async def test_cover_full_features(
hass: HomeAssistant,
matter_client: MagicMock,
Expand Down Expand Up @@ -448,6 +449,15 @@ async def test_cover_full_features(
assert state
assert state.state == STATE_CLOSED

set_node_attribute(window_covering, 1, 258, 14, 5000)
set_node_attribute(window_covering, 1, 258, 15, 5000)
set_node_attribute(window_covering, 1, 258, 10, 0b000000)
await trigger_subscription_callback(hass, matter_client)

state = hass.states.get(entity_id)
assert state
assert state.state == STATE_OPEN

set_node_attribute(window_covering, 1, 258, 14, 5000)
set_node_attribute(window_covering, 1, 258, 15, None)
set_node_attribute(window_covering, 1, 258, 10, 0b000000)
Expand Down

0 comments on commit 33581da

Please sign in to comment.