mirror of
https://github.com/home-assistant/core.git
synced 2025-06-06 22:27:12 +00:00

* Migrate elkm1 to use a dataclass for integration data * fix unsaved * slotted * missing coveragerc * Revert "missing coveragerc" This reverts commit 3397b40309033276d20fef59098b0a1b5b681a30.
20 lines
370 B
Python
20 lines
370 B
Python
"""The elkm1 integration models."""
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from typing import Any
|
|
|
|
from elkm1_lib import Elk
|
|
|
|
|
|
@dataclass(slots=True)
|
|
class ELKM1Data:
|
|
"""Data for the elkm1 integration."""
|
|
|
|
elk: Elk
|
|
prefix: str
|
|
mac: str | None
|
|
auto_configure: bool
|
|
config: dict[str, Any]
|
|
keypads: dict[str, Any]
|