mirror of
https://github.com/home-assistant/core.git
synced 2025-05-03 13:39:16 +00:00
13 lines
336 B
Python
13 lines
336 B
Python
"""Integration platform for recorder."""
|
|
from __future__ import annotations
|
|
|
|
from homeassistant.core import HomeAssistant, callback
|
|
|
|
from . import ATTR_FORECAST
|
|
|
|
|
|
@callback
|
|
def exclude_attributes(hass: HomeAssistant) -> set[str]:
|
|
"""Exclude (often large) forecasts from being recorded in the database."""
|
|
return {ATTR_FORECAST}
|