Add recorder platform to input_datetime (#70225)
This commit is contained in:
parent
fc4e9b0cc3
commit
5d62f405f1
3 changed files with 72 additions and 0 deletions
13
homeassistant/components/input_datetime/recorder.py
Normal file
13
homeassistant/components/input_datetime/recorder.py
Normal 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}
|
Loading…
Add table
Add a link
Reference in a new issue