From f20e1ad560b0a21e1e6d78430c8e656c375be46d Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Sun, 3 Mar 2024 18:46:51 +0100 Subject: [PATCH] Exclude tankerkoenig attributes from recording (#112109) --- homeassistant/components/tankerkoenig/sensor.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/homeassistant/components/tankerkoenig/sensor.py b/homeassistant/components/tankerkoenig/sensor.py index c0394bd318f..b36479d4ce5 100644 --- a/homeassistant/components/tankerkoenig/sensor.py +++ b/homeassistant/components/tankerkoenig/sensor.py @@ -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,