Add recorder platform to input_datetime (#70225)

This commit is contained in:
Franck Nijhof 2022-04-18 17:19:55 +02:00 committed by GitHub
parent fc4e9b0cc3
commit 5d62f405f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 72 additions and 0 deletions

View file

@ -0,0 +1,13 @@
"""Integration platform for recorder."""
from __future__ import annotations
from homeassistant.const import ATTR_EDITABLE
from homeassistant.core import HomeAssistant, callback
from . import CONF_HAS_DATE, CONF_HAS_TIME
@callback
def exclude_attributes(hass: HomeAssistant) -> set[str]:
"""Exclude some attributes from being recorded in the database."""
return {ATTR_EDITABLE, CONF_HAS_DATE, CONF_HAS_TIME}