mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	[pre-commit.ci lite] apply automatic fixes
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							545fa1f1bc
						
					
				
				
					commit
					d2deba6b69
				
			| @@ -41,7 +41,7 @@ async def test_host_mode_api_password( | |||||||
|             # Wait for at least one state with timeout |             # Wait for at least one state with timeout | ||||||
|             try: |             try: | ||||||
|                 await asyncio.wait_for(state_future, timeout=5.0) |                 await asyncio.wait_for(state_future, timeout=5.0) | ||||||
|             except asyncio.TimeoutError: |             except TimeoutError: | ||||||
|                 pytest.fail("No states received within timeout") |                 pytest.fail("No states received within timeout") | ||||||
|  |  | ||||||
|             # Should have received at least one state (the test sensor) |             # Should have received at least one state (the test sensor) | ||||||
|   | |||||||
| @@ -65,13 +65,13 @@ async def test_runtime_stats( | |||||||
|         # Wait for first "Total stats" log (should happen at 1s) |         # Wait for first "Total stats" log (should happen at 1s) | ||||||
|         try: |         try: | ||||||
|             await asyncio.wait_for(first_stats_future, timeout=5.0) |             await asyncio.wait_for(first_stats_future, timeout=5.0) | ||||||
|         except asyncio.TimeoutError: |         except TimeoutError: | ||||||
|             pytest.fail("First 'Total stats' log not seen within 5 seconds") |             pytest.fail("First 'Total stats' log not seen within 5 seconds") | ||||||
|  |  | ||||||
|         # Wait for second "Total stats" log (should happen at 2s) |         # Wait for second "Total stats" log (should happen at 2s) | ||||||
|         try: |         try: | ||||||
|             await asyncio.wait_for(second_stats_future, timeout=5.0) |             await asyncio.wait_for(second_stats_future, timeout=5.0) | ||||||
|         except asyncio.TimeoutError: |         except TimeoutError: | ||||||
|             pytest.fail(f"Second 'Total stats' log not seen. Total seen: {stats_count}") |             pytest.fail(f"Second 'Total stats' log not seen. Total seen: {stats_count}") | ||||||
|  |  | ||||||
|         # Verify we got at least 2 stats logs |         # Verify we got at least 2 stats logs | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user