Exclude tankerkoenig attributes from recording (#112109)

pull/111883/head
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
1 changed files with 13 additions and 0 deletions

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,