From b36baa1b24d0007e844d7a23d974623e341b7cf3 Mon Sep 17 00:00:00 2001 From: Jonas Karlsson Date: Thu, 16 Oct 2025 21:21:26 +0000 Subject: [PATCH] Do not write list attributes to database. --- custom_components/nordpool/sensor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/nordpool/sensor.py b/custom_components/nordpool/sensor.py index aad5f03..abba66b 100644 --- a/custom_components/nordpool/sensor.py +++ b/custom_components/nordpool/sensor.py @@ -108,6 +108,10 @@ class NordpoolSensor(SensorEntity): _attr_device_class = SensorDeviceClass.MONETARY _attr_suggested_display_precision = None _attr_state_class = SensorStateClass.TOTAL + # Do not write list attributes to database. + _unrecorded_attributes = frozenset( + {"raw_today", "raw_tomorrow", "today", "tomorrow"} + ) def __init__( self,