Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goodwe v1 1 #1727

Merged
merged 10 commits into from
Jul 5, 2024
2 changes: 2 additions & 0 deletions packages/modules/devices/good_we/counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from modules.common.component_type import ComponentDescriptor
from modules.common.fault_state import ComponentInfo, FaultState
from modules.common.modbus import ModbusDataType
from modules.common.simcount import SimCounter
from modules.common.store import get_counter_value_store
from modules.devices.good_we.config import GoodWeCounterSetup
from modules.devices.good_we.version import GoodWeVersion
Expand All @@ -22,6 +23,7 @@ def __init__(self,
self.__modbus_id = modbus_id
self.version = version
self.firmware = firmware
self.sim_counter = SimCounter(self.__device_id, self.component_config.id, prefix="bezug")
self.component_config = dataclass_from_dict(GoodWeCounterSetup, component_config)
self.__tcp_client = tcp_client
self.store = get_counter_value_store(self.component_config.id)
Expand Down