Files
2021-11-04 01:18:18 -04:00

25 lines
476 B
Python

"""Mixin classes."""
# pylint: disable=too-few-public-methods
from __future__ import annotations
from logging import Logger
from typing import TYPE_CHECKING
from .share import get_hacs
from .utils.logger import getLogger
if TYPE_CHECKING:
from .hacsbase.hacs import Hacs
class HacsMixin:
"""Mixin to provide 'self.hacs' to classes."""
hacs: Hacs = get_hacs()
class LogMixin:
"""Mixin to provide 'self.log' to classes."""
log: Logger = getLogger()