Skip to content

Commit 723f4e9

Browse files
authored
Merge pull request #505 from jonasbkarlsson/fix.16k_limitation
16k attribute limitation
2 parents 3bf8170 + b36baa1 commit 723f4e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

custom_components/nordpool/sensor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ class NordpoolSensor(SensorEntity):
108108
_attr_device_class = SensorDeviceClass.MONETARY
109109
_attr_suggested_display_precision = None
110110
_attr_state_class = SensorStateClass.TOTAL
111+
# Do not write list attributes to database.
112+
_unrecorded_attributes = frozenset(
113+
{"raw_today", "raw_tomorrow", "today", "tomorrow"}
114+
)
111115

112116
def __init__(
113117
self,

0 commit comments

Comments
 (0)