mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 13:30:43 +00:00
Update Eve Shutter test to reflect correct ConfigStatus state changes
This commit is contained in:
@@ -382,15 +382,15 @@ async def test_shutter(
|
||||
matter_node: MatterNode,
|
||||
) -> None:
|
||||
"""Test shutter ConfigStatus."""
|
||||
# Eve Shutter default state
|
||||
# Eve Shutter default state (ConfigStatus = 9)
|
||||
state = hass.states.get("binary_sensor.eve_shutter_switch_20eci1701_config_status")
|
||||
assert state
|
||||
assert state.state == "off"
|
||||
assert state.state == "on"
|
||||
|
||||
# Eve Shutter ConfigStatus Operational bit set
|
||||
set_node_attribute(matter_node, 1, 258, 7, 1)
|
||||
# Eve Shutter ConfigStatus Operational bit not set
|
||||
set_node_attribute(matter_node, 1, 258, 7, 8)
|
||||
await trigger_subscription_callback(hass, matter_client)
|
||||
|
||||
state = hass.states.get("binary_sensor.eve_shutter_switch_20eci1701_config_status")
|
||||
assert state
|
||||
assert state.state == "on"
|
||||
assert state.state == "off"
|
||||
|
||||
Reference in New Issue
Block a user