mirror of
https://github.com/home-assistant/core.git
synced 2025-05-03 05:29:14 +00:00
14 lines
475 B
Python
14 lines
475 B
Python
"""Integration platform for recorder."""
|
|
from __future__ import annotations
|
|
|
|
from homeassistant.const import ATTR_ENTITY_PICTURE
|
|
from homeassistant.core import HomeAssistant, callback
|
|
|
|
from .const import ATTR_IN_PROGRESS, ATTR_RELEASE_SUMMARY
|
|
|
|
|
|
@callback
|
|
def exclude_attributes(hass: HomeAssistant) -> set[str]:
|
|
"""Exclude large and chatty update attributes from being recorded in the database."""
|
|
return {ATTR_ENTITY_PICTURE, ATTR_IN_PROGRESS, ATTR_RELEASE_SUMMARY}
|