File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
custom_components/energidataservice Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -579,9 +579,6 @@ def inner(*args, **kwargs): # type: ignore pylint: disable=unused-argument
579
579
template_value + (value / UNIT_TO_MULTIPLIER [self ._price_type ])
580
580
) * (float (1 + self ._vat ))
581
581
582
- if self ._cent :
583
- price = price * CENT_MULTIPLIER
584
-
585
582
if self ._api .tariff_data is not None and hour is not None :
586
583
# Add tariffs automatically
587
584
try :
@@ -599,6 +596,9 @@ def inner(*args, **kwargs): # type: ignore pylint: disable=unused-argument
599
596
"Error adding tariffs for %s, no valid tariffs was found!" , fake_dt
600
597
)
601
598
599
+ if self ._cent :
600
+ price = price * CENT_MULTIPLIER
601
+
602
602
return round (price , self ._decimals )
603
603
604
604
def _format_list (
You can’t perform that action at this time.
0 commit comments