Don't record attributes in sql (#120170)
parent
725c309c0d
commit
9b341f5b67
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue