@@ -85,6 +85,12 @@ async def test_thermostat_base(
8585 assert state
8686 assert state .attributes ["hvac_action" ] == HVACAction .HEATING
8787
88+ set_node_attribute (matter_node , 1 , 513 , 41 , 5 )
89+ await trigger_subscription_callback (hass , matter_client )
90+ state = hass .states .get ("climate.longan_link_hvac" )
91+ assert state
92+ assert state .attributes ["hvac_action" ] == HVACAction .HEATING
93+
8894 set_node_attribute (matter_node , 1 , 513 , 41 , 8 )
8995 await trigger_subscription_callback (hass , matter_client )
9096 state = hass .states .get ("climate.longan_link_hvac" )
@@ -97,12 +103,24 @@ async def test_thermostat_base(
97103 assert state
98104 assert state .attributes ["hvac_action" ] == HVACAction .COOLING
99105
106+ set_node_attribute (matter_node , 1 , 513 , 41 , 6 )
107+ await trigger_subscription_callback (hass , matter_client )
108+ state = hass .states .get ("climate.longan_link_hvac" )
109+ assert state
110+ assert state .attributes ["hvac_action" ] == HVACAction .COOLING
111+
100112 set_node_attribute (matter_node , 1 , 513 , 41 , 16 )
101113 await trigger_subscription_callback (hass , matter_client )
102114 state = hass .states .get ("climate.longan_link_hvac" )
103115 assert state
104116 assert state .attributes ["hvac_action" ] == HVACAction .COOLING
105117
118+ set_node_attribute (matter_node , 1 , 513 , 41 , 66 )
119+ await trigger_subscription_callback (hass , matter_client )
120+ state = hass .states .get ("climate.longan_link_hvac" )
121+ assert state
122+ assert state .attributes ["hvac_action" ] == HVACAction .COOLING
123+
106124 set_node_attribute (matter_node , 1 , 513 , 41 , 4 )
107125 await trigger_subscription_callback (hass , matter_client )
108126 state = hass .states .get ("climate.longan_link_hvac" )
@@ -121,7 +139,7 @@ async def test_thermostat_base(
121139 assert state
122140 assert state .attributes ["hvac_action" ] == HVACAction .FAN
123141
124- set_node_attribute (matter_node , 1 , 513 , 41 , 66 )
142+ set_node_attribute (matter_node , 1 , 513 , 41 , 128 )
125143 await trigger_subscription_callback (hass , matter_client )
126144 state = hass .states .get ("climate.longan_link_hvac" )
127145 assert state
0 commit comments