Don't record attributes in sql (#120170)

pull/114781/head
G Johansson 2024-06-22 19:42:55 +02:00 committed by GitHub
parent 725c309c0d
commit 9b341f5b67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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,