1
0
mirror of https://github.com/home-assistant/core.git synced 2025-11-03 16:09:36 +00:00
Files
core/homeassistant/components/update/recorder.py
2023-01-08 13:40:08 -10:00

14 lines
459 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."""
return {ATTR_ENTITY_PICTURE, ATTR_IN_PROGRESS, ATTR_RELEASE_SUMMARY}