mirror of
https://github.com/home-assistant/core
synced 2024-08-28 03:36:46 +02:00
![J. Nick Koston](/assets/img/avatar_default.png)
* Migrate elkm1 to use a dataclass for integration data
* fix unsaved
* slotted
* missing coveragerc
* Revert "missing coveragerc"
This reverts commit 3397b40309
.
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]
|