-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use DataUpdateCoordinator for all entities
- Loading branch information
Showing
13 changed files
with
305 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
from dataclasses import dataclass | ||
from typing import TYPE_CHECKING | ||
from dataclasses import dataclass, field | ||
|
||
from homeassistant.config_entries import ConfigEntry | ||
from homeassistant.helpers.entity import DeviceInfo | ||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator | ||
from sessypy.devices import SessyDevice | ||
|
||
if TYPE_CHECKING: | ||
from .coordinator import SessyCoordinator | ||
|
||
type SessyConfigEntry = ConfigEntry[SessyRuntimeData] | ||
|
||
@dataclass | ||
class SessyRuntimeData: | ||
device: SessyDevice = None | ||
device_info: DeviceInfo = None | ||
coordinators: dict[SessyCoordinator] = dict() | ||
coordinators: dict[DataUpdateCoordinator] = field(default_factory=dict) |
Oops, something went wrong.