mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Don't record attributes in sql (#120170)
This commit is contained in:
parent
725c309c0d
commit
9b341f5b67
@ -30,6 +30,7 @@ from homeassistant.const import (
|
|||||||
CONF_UNIT_OF_MEASUREMENT,
|
CONF_UNIT_OF_MEASUREMENT,
|
||||||
CONF_VALUE_TEMPLATE,
|
CONF_VALUE_TEMPLATE,
|
||||||
EVENT_HOMEASSISTANT_STOP,
|
EVENT_HOMEASSISTANT_STOP,
|
||||||
|
MATCH_ALL,
|
||||||
)
|
)
|
||||||
from homeassistant.core import Event, HomeAssistant, callback
|
from homeassistant.core import Event, HomeAssistant, callback
|
||||||
from homeassistant.exceptions import TemplateError
|
from homeassistant.exceptions import TemplateError
|
||||||
@ -307,6 +308,8 @@ def _generate_lambda_stmt(query: str) -> StatementLambdaElement:
|
|||||||
class SQLSensor(ManualTriggerSensorEntity):
|
class SQLSensor(ManualTriggerSensorEntity):
|
||||||
"""Representation of an SQL sensor."""
|
"""Representation of an SQL sensor."""
|
||||||
|
|
||||||
|
_unrecorded_attributes = frozenset({MATCH_ALL})
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
trigger_entity_config: ConfigType,
|
trigger_entity_config: ConfigType,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user