updating to latest

This commit is contained in:
root
2021-11-04 01:18:18 -04:00
parent f92b773514
commit 7eadb4c49c
153 changed files with 19015 additions and 5168 deletions

View File

@@ -0,0 +1,24 @@
"""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()