mirror of
				https://github.com/home-assistant/core.git
				synced 2025-11-04 00:19:31 +00:00 
			
		
		
		
	Fix recorder platform tests (#88330)
This commit is contained in:
		@@ -30,7 +30,11 @@ async def test_exclude_attributes(recorder_mock: Recorder, hass: HomeAssistant)
 | 
			
		||||
    def _fetch_states() -> list[State]:
 | 
			
		||||
        with session_scope(hass=hass) as session:
 | 
			
		||||
            native_states = []
 | 
			
		||||
            for db_state, db_state_attributes in session.query(States, StateAttributes):
 | 
			
		||||
            for db_state, db_state_attributes in session.query(
 | 
			
		||||
                States, StateAttributes
 | 
			
		||||
            ).outerjoin(
 | 
			
		||||
                StateAttributes, States.attributes_id == StateAttributes.attributes_id
 | 
			
		||||
            ):
 | 
			
		||||
                state = db_state.to_native()
 | 
			
		||||
                state.attributes = db_state_attributes.to_native()
 | 
			
		||||
                native_states.append(state)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user