mirror of
				https://github.com/Akkudoktor-EOS/EOS.git
				synced 2025-10-30 22:36:21 +00:00 
			
		
		
		
	
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							8b880299b8
						
					
				
				
					commit
					7ade15e9e3
				
			| @@ -39,10 +39,14 @@ class Devices(SingletonMixin, DevicesBase): | ||||
|             device.post_setup() | ||||
|  | ||||
|  | ||||
| # Initialize the Devices  simulation, it is a singleton. | ||||
| devices = Devices() | ||||
| # Initialize the Devices simulation, it is a singleton. | ||||
| devices: Optional[Devices] = None | ||||
|  | ||||
|  | ||||
| def get_devices() -> Devices: | ||||
|     global devices | ||||
|     # Fix circular import at runtime | ||||
|     if devices is None: | ||||
|         devices = Devices() | ||||
|     """Gets the EOS Devices simulation.""" | ||||
|     return devices | ||||
|   | ||||
		Reference in New Issue
	
	Block a user