core/homeassistant/components/event/recorder.py

13 lines
336 B
Python
Raw Normal View History

2023-07-21 10:16:35 +00:00
"""Integration platform for recorder."""
from __future__ import annotations
from homeassistant.core import HomeAssistant, callback
from . import ATTR_EVENT_TYPES
@callback
def exclude_attributes(hass: HomeAssistant) -> set[str]:
"""Exclude static attributes from being recorded in the database."""
return {ATTR_EVENT_TYPES}