@@ -269,12 +269,12 @@ async def test_migrate_unique_id_relay(
269269
270270@pytest .mark .parametrize ("chosen_env" , ["m_adam_heating" ], indirect = True )
271271@pytest .mark .parametrize ("cooling_present" , [False ], indirect = True )
272- async def test_update_interval (
272+ async def test_update_interval_adam (
273273 hass : HomeAssistant ,
274274 mock_config_entry : MockConfigEntry ,
275275 mock_smile_adam_heat_cool : MagicMock ,
276276 freezer : FrozenDateTimeFactory ,
277- ) -> None :
277+ ) -> None :
278278 """Test Adam update interval."""
279279 mock_config_entry .add_to_hass (hass )
280280 assert await async_setup_component (hass , DOMAIN , {})
@@ -291,6 +291,32 @@ async def test_update_interval(
291291 assert mock_smile_adam_heat_cool .async_update .call_count == 2
292292
293293
294+ @pytest .mark .parametrize ("chosen_env" , ["p1v4_442_single" ], indirect = True )
295+ @pytest .mark .parametrize (
296+ "gateway_id" , ["a455b61e52394b2db5081ce025a430f3" ], indirect = True
297+ )
298+ async def test_update_interval_p1 (
299+ hass : HomeAssistant ,
300+ mock_config_entry : MockConfigEntry ,
301+ mock_smile_p1 : MagicMock ,
302+ freezer : FrozenDateTimeFactory ,
303+ ) -> None :
304+ """Test Adam update interval."""
305+ mock_config_entry .add_to_hass (hass )
306+ assert await async_setup_component (hass , DOMAIN , {})
307+ await hass .async_block_till_done ()
308+
309+ assert mock_config_entry .state is ConfigEntryState .LOADED
310+ assert mock_smile_p1 .async_update .call_count == 1
311+
312+ assert DEFAULT_SCAN_INTERVAL [mock_smile_p1 .smile .type ] == timedelta (seconds = 10 )
313+ freezer .tick (DEFAULT_SCAN_INTERVAL [mock_smile_p1 .smile .type ])
314+ async_fire_time_changed (hass )
315+ await hass .async_block_till_done ()
316+
317+ assert mock_smile_p1 .async_update .call_count == 2
318+
319+
294320@pytest .mark .parametrize ("chosen_env" , ["m_adam_heating" ], indirect = True )
295321@pytest .mark .parametrize ("cooling_present" , [False ], indirect = True )
296322async def test_update_device (
0 commit comments