mirror of
				https://github.com/home-assistant/core.git
				synced 2025-11-04 00:19:31 +00:00 
			
		
		
		
	Add transition support to scenes, cleanup blocking parameter (#34434)
This commit is contained in:
		@@ -14,8 +14,7 @@ async def test_reproducing_states(hass, caplog):
 | 
			
		||||
 | 
			
		||||
    # These calls should do nothing as entities already in desired state
 | 
			
		||||
    await hass.helpers.state.async_reproduce_state(
 | 
			
		||||
        [State("automation.entity_off", "off"), State("automation.entity_on", "on")],
 | 
			
		||||
        blocking=True,
 | 
			
		||||
        [State("automation.entity_off", "off"), State("automation.entity_on", "on")]
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    assert len(turn_on_calls) == 0
 | 
			
		||||
@@ -23,7 +22,7 @@ async def test_reproducing_states(hass, caplog):
 | 
			
		||||
 | 
			
		||||
    # Test invalid state is handled
 | 
			
		||||
    await hass.helpers.state.async_reproduce_state(
 | 
			
		||||
        [State("automation.entity_off", "not_supported")], blocking=True
 | 
			
		||||
        [State("automation.entity_off", "not_supported")]
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    assert "not_supported" in caplog.text
 | 
			
		||||
@@ -37,8 +36,7 @@ async def test_reproducing_states(hass, caplog):
 | 
			
		||||
            State("automation.entity_off", "on"),
 | 
			
		||||
            # Should not raise
 | 
			
		||||
            State("automation.non_existing", "on"),
 | 
			
		||||
        ],
 | 
			
		||||
        blocking=True,
 | 
			
		||||
        ]
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    assert len(turn_on_calls) == 1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user