mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Stop recording of non-changing attributes in threshold (#129541)
This commit is contained in:
parent
0579d565dd
commit
f1a2c8be4b
@ -151,6 +151,9 @@ class ThresholdSensor(BinarySensorEntity):
|
|||||||
"""Representation of a Threshold sensor."""
|
"""Representation of a Threshold sensor."""
|
||||||
|
|
||||||
_attr_should_poll = False
|
_attr_should_poll = False
|
||||||
|
_unrecorded_attributes = frozenset(
|
||||||
|
{ATTR_ENTITY_ID, ATTR_HYSTERESIS, ATTR_LOWER, ATTR_TYPE, ATTR_UPPER}
|
||||||
|
)
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user