From 9b341f5b67737c4cccd1bfedbc7d56aa31530969 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Sat, 22 Jun 2024 19:42:55 +0200 Subject: [PATCH] Don't record attributes in sql (#120170) --- homeassistant/components/sql/sensor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/sql/sensor.py b/homeassistant/components/sql/sensor.py index fd9762dcafc..f09f7ae95cf 100644 --- a/homeassistant/components/sql/sensor.py +++ b/homeassistant/components/sql/sensor.py @@ -30,6 +30,7 @@ from homeassistant.const import ( CONF_UNIT_OF_MEASUREMENT, CONF_VALUE_TEMPLATE, EVENT_HOMEASSISTANT_STOP, + MATCH_ALL, ) from homeassistant.core import Event, HomeAssistant, callback from homeassistant.exceptions import TemplateError @@ -307,6 +308,8 @@ def _generate_lambda_stmt(query: str) -> StatementLambdaElement: class SQLSensor(ManualTriggerSensorEntity): """Representation of an SQL sensor.""" + _unrecorded_attributes = frozenset({MATCH_ALL}) + def __init__( self, trigger_entity_config: ConfigType,