forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove history use_include_order configuration option (home-assistant…
- Loading branch information
Showing
6 changed files
with
51 additions
and
181 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
"""History integration constants.""" | ||
|
||
DOMAIN = "history" | ||
HISTORY_FILTERS = "history_filters" | ||
HISTORY_ENTITIES_FILTER = "history_entities_filter" | ||
HISTORY_USE_INCLUDE_ORDER = "history_use_include_order" | ||
|
||
EVENT_COALESCE_TIME = 0.35 | ||
|
||
MAX_PENDING_HISTORY_STATES = 2048 |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Models for the history integration.""" | ||
from __future__ import annotations | ||
|
||
from dataclasses import dataclass | ||
|
||
from homeassistant.components.recorder.filters import Filters | ||
from homeassistant.helpers.entityfilter import EntityFilter | ||
|
||
|
||
@dataclass | ||
class HistoryConfig: | ||
"""Configuration for the history integration.""" | ||
|
||
sqlalchemy_filter: Filters | None = None | ||
entity_filter: EntityFilter | None = None |
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