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

aioenet not updating current values? #35

Open
nestorix1343 opened this issue Sep 3, 2024 · 4 comments
Open

aioenet not updating current values? #35

nestorix1343 opened this issue Sep 3, 2024 · 4 comments

Comments

@nestorix1343
Copy link
Contributor

nestorix1343 commented Sep 3, 2024

I have the impression that aioenet.py is not updating the current values of an Actuator when an event is being handled.

In aioenet.py, line 149-152:

for value_spec in values:
    value = value_spec["value"]
    log.debug("Updating value of %s to %s", device, value)
    device.state = value

I can not really find device.state being used anywhere.

Shouldn't this be replaced with the line:

device.update_values(function_uid, values)
@mnordseth
Copy link
Owner

mnordseth commented Sep 3, 2024 via email

@nestorix1343
Copy link
Contributor Author

nestorix1343 commented Sep 3, 2024

I am using the aioenet for another piece of software (eNet to MQTT) and I am not using any code which depends on HomeAssistant. The aioenet "library" is basically doing exactly what I need, except it goes wrong (or in any case does not do what I expected) with storing current values of Actuators.

I can/will fix this in the version I am using but I thought my remark could help a little bit.

@mnordseth
Copy link
Owner

mnordseth commented Sep 3, 2024 via email

@nestorix1343
Copy link
Contributor Author

Will do after I integrated the current/new aioenet version in my project. At this time I am still using an older version of it and I am working on using the new one as I like the event handling being integrated more in aioenet now. Saves me a lot of nasty code in my project.

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

No branches or pull requests

2 participants