From 37d39ac6d3d6133760fddf0009eb76d6e377a33f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 16 Apr 2022 11:09:08 -1000 Subject: [PATCH] Add restored to the set of attributes excluded from being recorded in the db (#70169) * Add restored to the set of attributes excluded from being recorded in the database - Noticed on restart that the table gets 100s of new rows because of these * Update homeassistant/components/recorder/const.py --- homeassistant/components/recorder/const.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/recorder/const.py b/homeassistant/components/recorder/const.py index 20566862ec4..593710a10dd 100644 --- a/homeassistant/components/recorder/const.py +++ b/homeassistant/components/recorder/const.py @@ -4,7 +4,7 @@ from functools import partial import json from typing import Final -from homeassistant.const import ATTR_ATTRIBUTION, ATTR_SUPPORTED_FEATURES +from homeassistant.const import ATTR_ATTRIBUTION, ATTR_RESTORED, ATTR_SUPPORTED_FEATURES from homeassistant.helpers.json import JSONEncoder DATA_INSTANCE = "recorder_instance" @@ -27,4 +27,4 @@ DB_WORKER_PREFIX = "DbWorker" JSON_DUMP: Final = partial(json.dumps, cls=JSONEncoder, separators=(",", ":")) -ALL_DOMAIN_EXCLUDE_ATTRS = {ATTR_ATTRIBUTION, ATTR_SUPPORTED_FEATURES} +ALL_DOMAIN_EXCLUDE_ATTRS = {ATTR_ATTRIBUTION, ATTR_RESTORED, ATTR_SUPPORTED_FEATURES}