mirror of
				https://github.com/home-assistant/core.git
				synced 2025-10-30 22:19:37 +00:00 
			
		
		
		
	 578fece13e
			
		
	
	578fece13e
	
	
	
		
			
			* Fix System Bridge wait timeout wait condition * Add DataMissingException as a timeout condition * Add tests
		
			
				
	
	
		
			24 lines
		
	
	
		
			432 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			432 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """Constants for the System Bridge integration."""
 | |
| 
 | |
| from typing import Final
 | |
| 
 | |
| from systembridgemodels.modules import Module
 | |
| 
 | |
| DOMAIN = "system_bridge"
 | |
| 
 | |
| MODULES: Final[list[Module]] = [
 | |
|     Module.BATTERY,
 | |
|     Module.CPU,
 | |
|     Module.DISKS,
 | |
|     Module.DISPLAYS,
 | |
|     Module.GPUS,
 | |
|     Module.MEDIA,
 | |
|     Module.MEMORY,
 | |
|     Module.PROCESSES,
 | |
|     Module.SYSTEM,
 | |
| ]
 | |
| 
 | |
| DATA_WAIT_TIMEOUT: Final[int] = 20
 | |
| 
 | |
| GET_DATA_WAIT_TIMEOUT: Final[int] = 15
 |