mirror of
https://github.com/home-assistant/core.git
synced 2025-12-23 04:19:34 +00:00
16 lines
369 B
Python
16 lines
369 B
Python
"""Models for Risco integration."""
|
|
|
|
from collections.abc import Callable
|
|
from dataclasses import dataclass, field
|
|
from typing import Any
|
|
|
|
from pyrisco import RiscoLocal
|
|
|
|
|
|
@dataclass
|
|
class LocalData:
|
|
"""A data class for local data passed to the platforms."""
|
|
|
|
system: RiscoLocal
|
|
partition_updates: dict[int, Callable[[], Any]] = field(default_factory=dict)
|