mirror of
				https://github.com/home-assistant/core.git
				synced 2025-10-31 14:39:27 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			399 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			399 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """Subscriber for devolo home control API publisher."""
 | |
| 
 | |
| from collections.abc import Callable
 | |
| import logging
 | |
| 
 | |
| _LOGGER = logging.getLogger(__name__)
 | |
| 
 | |
| 
 | |
| class Subscriber:
 | |
|     """Subscriber class for the publisher in mprm websocket class."""
 | |
| 
 | |
|     def __init__(self, name: str, callback: Callable) -> None:
 | |
|         """Initiate the subscriber."""
 | |
|         self.name = name
 | |
|         self.callback = callback
 | 
