mirror of
https://github.com/home-assistant/core.git
synced 2025-05-02 21:19:16 +00:00

* Remove malformed pylint disable markers * Remove some unused imports * Remove some unneeded lint exclusions * Remove more unneeded lint exclusions * Add specific codes to all noqa's
18 lines
511 B
Python
18 lines
511 B
Python
"""Models for permissions."""
|
|
from typing import TYPE_CHECKING
|
|
|
|
import attr
|
|
|
|
if TYPE_CHECKING:
|
|
# pylint: disable=unused-import
|
|
from homeassistant.helpers import entity_registry as ent_reg # noqa: F401
|
|
from homeassistant.helpers import device_registry as dev_reg # noqa: F401
|
|
|
|
|
|
@attr.s(slots=True)
|
|
class PermissionLookup:
|
|
"""Class to hold data for permission lookups."""
|
|
|
|
entity_registry = attr.ib(type="ent_reg.EntityRegistry")
|
|
device_registry = attr.ib(type="dev_reg.DeviceRegistry")
|