forked from home-assistant/core
Don't record attributes in sql (#120170)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user