mirror of
				https://github.com/home-assistant/core.git
				synced 2025-11-04 08:29:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			479 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			479 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""Models for permissions."""
 | 
						|
from typing import TYPE_CHECKING
 | 
						|
 | 
						|
import attr
 | 
						|
 | 
						|
if TYPE_CHECKING:
 | 
						|
    # pylint: disable=unused-import
 | 
						|
    from homeassistant.helpers import (  # noqa: F401
 | 
						|
        device_registry as dev_reg,
 | 
						|
        entity_registry as ent_reg,
 | 
						|
    )
 | 
						|
 | 
						|
 | 
						|
@attr.s(slots=True)
 | 
						|
class PermissionLookup:
 | 
						|
    """Class to hold data for permission lookups."""
 | 
						|
 | 
						|
    entity_registry: "ent_reg.EntityRegistry" = attr.ib()
 | 
						|
    device_registry: "dev_reg.DeviceRegistry" = attr.ib()
 |