Exclude tankerkoenig attributes from recording (#112109)

This commit is contained in:
Jan-Philipp Benecke 2024-03-03 18:46:51 +01:00 committed by GitHub
parent 4eb24b2db7
commit f20e1ad560
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,6 +64,19 @@ class FuelPriceSensor(TankerkoenigCoordinatorEntity, SensorEntity):
_attr_attribution = ATTRIBUTION
_attr_state_class = SensorStateClass.MEASUREMENT
_attr_native_unit_of_measurement = CURRENCY_EURO
_unrecorded_attributes = frozenset(
{
ATTR_BRAND,
ATTR_CITY,
ATTR_HOUSE_NUMBER,
ATTR_POSTCODE,
ATTR_STATION_NAME,
ATTR_STREET,
ATTRIBUTION,
ATTR_LATITUDE,
ATTR_LONGITUDE,
}
)
def __init__(
self,