1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-07 23:49:17 +00:00
Erik Montnemery 7e7cb15d5b
Revert "Allows defining list of attributes excluded from history in manifest.json" ()
Revert "Allows defining list of attributes excluded from history in manifest.json ()"

This reverts commit 0366e14630676b2d96f529c9113f5fceb86c705b.
2023-08-30 08:26:26 +02:00

13 lines
421 B
Python

"""Integration platform for recorder."""
from __future__ import annotations
from homeassistant.core import HomeAssistant, callback
from . import ATTR_CUR, ATTR_LAST_TRIGGERED, ATTR_MAX, ATTR_MODE, CONF_ID
@callback
def exclude_attributes(hass: HomeAssistant) -> set[str]:
"""Exclude extra attributes from being recorded in the database."""
return {ATTR_LAST_TRIGGERED, ATTR_MODE, ATTR_CUR, ATTR_MAX, CONF_ID}