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

Huawai modbus rtu #2077

Merged
merged 6 commits into from
Dec 18, 2024
Merged

Huawai modbus rtu #2077

merged 6 commits into from
Dec 18, 2024

Conversation

ndrsnhs
Copy link
Contributor

@ndrsnhs ndrsnhs commented Dec 17, 2024

self.sim_counter = SimCounter(self.__device_id, self.component_config.id, prefix="speicher")
self.store = get_bat_value_store(self.component_config.id)
self.fault_state = FaultState(ComponentInfo.from_component_config(self.component_config))

def update(self, client: ModbusTcpClient_) -> None:
time.sleep(1)
if type == HuaweiType.SDongle:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if type == HuaweiType.SDongle:
if self.type == HuaweiType.SDongle:

Entsprechend auch an den anderen Stellen. Sonst greift er auf eine Python-Klasse namens type zu.

@LKuemmel LKuemmel added this to the 2.1.7 milestone Dec 17, 2024
@LKuemmel LKuemmel self-requested a review December 18, 2024 07:42
@ndrsnhs ndrsnhs closed this Dec 18, 2024
@ndrsnhs ndrsnhs reopened this Dec 18, 2024
@LKuemmel LKuemmel merged commit d778788 into openWB:master Dec 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants