mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Merge branch 'integration' into memory_api
This commit is contained in:
		| @@ -4,7 +4,7 @@ from __future__ import annotations | |||||||
|  |  | ||||||
| import asyncio | import asyncio | ||||||
|  |  | ||||||
| from aioesphomeapi import ClimateInfo, ClimateState, EntityState, SensorState | from aioesphomeapi import ClimateInfo, EntityState, SensorState | ||||||
| import pytest | import pytest | ||||||
|  |  | ||||||
| from .types import APIClientConnectedFactory, RunCompiledFunction | from .types import APIClientConnectedFactory, RunCompiledFunction | ||||||
| @@ -71,12 +71,6 @@ async def test_host_mode_many_entities( | |||||||
|             f"Expected at least 50 sensor states, got {len(sensor_states)}" |             f"Expected at least 50 sensor states, got {len(sensor_states)}" | ||||||
|         ) |         ) | ||||||
|  |  | ||||||
|         # Verify we received the climate entity |  | ||||||
|         climate_states = [s for s in states.values() if isinstance(s, ClimateState)] |  | ||||||
|         assert len(climate_states) >= 1, ( |  | ||||||
|             f"Expected at least 1 climate state, got {len(climate_states)}" |  | ||||||
|         ) |  | ||||||
|  |  | ||||||
|         # Get entity info to verify climate entity details |         # Get entity info to verify climate entity details | ||||||
|         entities = await client.list_entities_services() |         entities = await client.list_entities_services() | ||||||
|         climate_infos = [e for e in entities[0] if isinstance(e, ClimateInfo)] |         climate_infos = [e for e in entities[0] if isinstance(e, ClimateInfo)] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user