Skip to content

Commit

Permalink
Add _unrecorded_attributes to EVSmartChargingSensorCharging to avoid …
Browse files Browse the repository at this point in the history
…storing large attributes.
  • Loading branch information
woopstar authored Jan 21, 2025
1 parent b67ffb5 commit 1048d90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/ev_smart_charging/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ class EVSmartChargingSensorCharging(EVSmartChargingSensor):

_entity_key = ENTITY_KEY_CHARGING_SENSOR

_unrecorded_attributes = frozenset(
["raw_two_days", "charging_schedule"]
)

def __init__(self, entry):
_LOGGER.debug("EVSmartChargingSensor.__init__()")
super().__init__(entry)
Expand Down

0 comments on commit 1048d90

Please sign in to comment.