Stop recording of non-changing attributes in threshold (#129541)

pull/129817/head^2
G Johansson 2024-11-04 17:36:25 +01:00 committed by GitHub
parent 0579d565dd
commit f1a2c8be4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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,