From 4e0c0ec05e335e6ddcc0874782c6df4094583bfc Mon Sep 17 00:00:00 2001 From: ndrsnhs Date: Mon, 2 Nov 2026 10:55:40 +0100 Subject: [PATCH] EcoFlow SimCounter: use component_config.type --- packages/modules/devices/ecoflow/stream/bat.py | 2 +- packages/modules/devices/ecoflow/stream/counter.py | 2 +- packages/modules/devices/ecoflow/stream/inverter.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/modules/devices/ecoflow/stream/bat.py b/packages/modules/devices/ecoflow/stream/bat.py index 8ab86bc6cd..0592415073 100644 --- a/packages/modules/devices/ecoflow/stream/bat.py +++ b/packages/modules/devices/ecoflow/stream/bat.py @@ -23,7 +23,7 @@ def __init__(self, component_config: EcoflowStreamBatSetup, **kwargs: Any) -> No def initialize(self) -> None: self.__device_id: int = self.kwargs['device_id'] - self.sim_counter = SimCounter(self.__device_id, self.component_config.id, prefix="speicher") + self.sim_counter = SimCounter(self.__device_id, self.component_config.id, self.component_config.type) self.store = get_component_value_store(self.component_config.type, self.component_config.id) self.fault_state = FaultState(ComponentInfo.from_component_config(self.component_config)) self.peak_filter = PeakFilter(ComponentType.BAT, self.component_config.id, self.fault_state) diff --git a/packages/modules/devices/ecoflow/stream/counter.py b/packages/modules/devices/ecoflow/stream/counter.py index 65398c8d50..d67e87c25d 100644 --- a/packages/modules/devices/ecoflow/stream/counter.py +++ b/packages/modules/devices/ecoflow/stream/counter.py @@ -23,7 +23,7 @@ def __init__(self, component_config: EcoflowStreamCounterSetup, **kwargs: Any) - def initialize(self) -> None: self.__device_id: int = self.kwargs['device_id'] - self.sim_counter = SimCounter(self.__device_id, self.component_config.id, prefix="bezug") + self.sim_counter = SimCounter(self.__device_id, self.component_config.id, self.component_config.type) self.store = get_component_value_store(self.component_config.type, self.component_config.id) self.fault_state = FaultState(ComponentInfo.from_component_config(self.component_config)) self.peak_filter = PeakFilter(ComponentType.COUNTER, self.component_config.id, self.fault_state) diff --git a/packages/modules/devices/ecoflow/stream/inverter.py b/packages/modules/devices/ecoflow/stream/inverter.py index 5f8948f4fb..0060a30450 100644 --- a/packages/modules/devices/ecoflow/stream/inverter.py +++ b/packages/modules/devices/ecoflow/stream/inverter.py @@ -23,7 +23,7 @@ def __init__(self, component_config: EcoflowStreamInverterSetup, **kwargs: Any) def initialize(self) -> None: self.__device_id: int = self.kwargs['device_id'] - self.sim_counter = SimCounter(self.__device_id, self.component_config.id, prefix="pv") + self.sim_counter = SimCounter(self.__device_id, self.component_config.id, self.component_config.type) self.store = get_component_value_store(self.component_config.type, self.component_config.id) self.fault_state = FaultState(ComponentInfo.from_component_config(self.component_config)) self.peak_filter = PeakFilter(ComponentType.INVERTER, self.component_config.id, self.fault_state)