Stop recording of non-changing attributes in threshold (#129541)
parent
0579d565dd
commit
f1a2c8be4b
|
@ -151,6 +151,9 @@ class ThresholdSensor(BinarySensorEntity):
|
|||
"""Representation of a Threshold sensor."""
|
||||
|
||||
_attr_should_poll = False
|
||||
_unrecorded_attributes = frozenset(
|
||||
{ATTR_ENTITY_ID, ATTR_HYSTERESIS, ATTR_LOWER, ATTR_TYPE, ATTR_UPPER}
|
||||
)
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
Loading…
Reference in New Issue