From 763d15af5bf8070bdebf013d13f6805a008bf0cc Mon Sep 17 00:00:00 2001 From: Malene Trab Date: Thu, 31 Aug 2023 10:17:30 +0000 Subject: [PATCH] Add use_cent attribute --- custom_components/energidataservice/sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/energidataservice/sensor.py b/custom_components/energidataservice/sensor.py index 472007a..9572202 100644 --- a/custom_components/energidataservice/sensor.py +++ b/custom_components/energidataservice/sensor.py @@ -447,6 +447,7 @@ def _get_current_price(self) -> None: "tomorrow_min": self._tomorrow_min or None, "tomorrow_max": self._tomorrow_max or None, "tomorrow_mean": self._tomorrow_mean or None, + "use_cent": self._cent, "attribution": f"Data sourced from {self._api.source}", }