Skip to content

Commit 377404b

Browse files
committed
#added servePrice via configuration
1 parent ab4f154 commit 377404b

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/components/electricity_tariffs/energycharts/electricity_tariff.vue

+3-10
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,8 @@
6868
:step="0.001"
6969
:precision="3"
7070
unit="ct/kWh"
71-
:model-value="
72-
$store.state.mqtt['openWB/general/prices/grid'] *
73-
100000
74-
"
7571
@update:model-value="
76-
updateState(
77-
'openWB/general/prices/grid',
78-
parseFloat(($event / 100000).toFixed(7)),
79-
)
72+
updateConfiguration(parseFloat(($event).toFixed(7)), 'configuration.servePrice')
8073
"
8174
>
8275
<template #help>
@@ -92,10 +85,10 @@
9285
</template>
9386

9487
<script>
95-
import ComponentState from "/opt/openWB-dev/openwb-ui-settings/src/components/mixins/ComponentState.vue";
88+
9689
export default {
9790
name: "ElectricityTariffEnergyCharts",
98-
mixins: [ComponentState],
91+
mixins: [],
9992
emits: ["update:configuration"],
10093
props: {
10194
electricityTariff: { type: Object, required: true },

0 commit comments

Comments
 (0)