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

Regression for VMBDALI starting at 2024.7.0 #114

Closed
dverhelst opened this issue Jul 17, 2024 · 5 comments · Fixed by #115
Closed

Regression for VMBDALI starting at 2024.7.0 #114

dverhelst opened this issue Jul 17, 2024 · 5 comments · Fixed by #115

Comments

@dverhelst
Copy link
Contributor

Hi,

Since version I am 2024.7.0 no longer able to use my 'old' VMBDALI module anymore. In another location an updated VMBDALI-20 seems to load, but is not showing any channels with version >2024.7.0.

INFO:velbus-handler:No cache yet, so forcing a bus scan
INFO:velbus-handler:Start module scan
INFO:velbus-handler:Starting handling scan 1
INFO:velbus-handler:Starting scan 1
INFO:velbus:Found module 1: <{} type:69 address:1 loaded:False loading:False channels: {}>
DEBUG:velbus-handler:Module 1 detected: start loading
INFO:velbus-handler:Scan module 1 completed, module loaded=True
INFO:velbus-handler:Starting handling scan 2
INFO:velbus-handler:Starting scan 2

Same scan on same version ( and same requirements.txt ) on another location with a VMBDALI-20 seems to work up to module level, but is not loading any channels.

INFO:velbus-handler:No cache yet, so forcing a bus scan
INFO:velbus-handler:Start module scan
INFO:velbus-handler:Starting handling scan 1
INFO:velbus-handler:Starting scan 1
INFO:velbus:Found module 1: <{} type:90 address:1 loaded:False loading:False channels: {}>
DEBUG:velbus-handler:Module 1 detected: start loading
INFO:velbus-handler:Scan module 1 completed, module loaded=True
INFO:velbus-handler:Starting handling scan 2
INFO:velbus-handler:Starting scan 2
...
...
<None type:90 address:1 loaded:True loading:False channels: {}>

<None type:90 address:1 loaded:True loading:False channels: {}>

<None type:90 address:1 loaded:True loading:False channels: {}>

<None type:90 address:1 loaded:True loading:False channels: {}>

Is module type '69' no longer detected as a VMBDALI and where's the channels?

Please advise, let me know what else I can do to help and thanks in advance!

@niobos
Copy link
Collaborator

niobos commented Jul 21, 2024

This regression was introduces in ac557be, when the change I made in 2583515 was partially reverted. It re-introduces the double-underscore, which makes that method not overridable.

If this is the only thing, it should be easy to fix, but maybe there is more.

@niobos
Copy link
Collaborator

niobos commented Jul 21, 2024

@sidlgor, @cereal2nd I see two changes in ac557be that I'm trying to understand. I've read the commit message, but that didn't resolve my questions. Can you elaborate on the reasoning behind these changes? I don't want to break the new things you introduced by just rolling these back.

  • you renamed the Module._load_default_channels() method to __load_default_channels()

  • you added await super().load() to the beginning of the VmbDali implementation of _load_default_channels()

niobos added a commit to niobos/velbus-aio that referenced this issue Jul 21, 2024
niobos added a commit to niobos/velbus-aio that referenced this issue Jul 21, 2024
niobos added a commit to niobos/velbus-aio that referenced this issue Jul 21, 2024
niobos added a commit to niobos/velbus-aio that referenced this issue Jul 22, 2024
@cereal2nd
Copy link
Owner

can you make a pull-request out of these commits?
this looks ok to me.

@sidlgor
Copy link
Contributor

sidlgor commented Jul 22, 2024

Sorry, my mistake, overlooked overload for VMBDali (bad excuse: I don't own VmbDali)
@niobos Thx for fix 👍

niobos added a commit to niobos/velbus-aio that referenced this issue Jul 22, 2024
@niobos niobos mentioned this issue Jul 22, 2024
@dverhelst
Copy link
Contributor Author

Type 69 seems to load again with the above commit:

INFO:velbus-handler:Start module scan
INFO:velbus-handler:Starting handling scan 1
INFO:velbus-handler:Starting scan 1
INFO:velbus:Found module 1: <{} type:69 address:1 loaded:False loading:False channels: {}>
DEBUG:velbus-handler:Module 1 detected: start loading
INFO:velbus-handler:Scan module 1 completed, module loaded=True
...
...
...
INFO:velbus-handler:Module scan completed
<None type:69 address:1 loaded:True loading:False channels: {}>

<None type:69 address:1 loaded:True loading:False channels: {}>

<None type:69 address:1 loaded:True loading:False channels: {}>

<None type:69 address:1 loaded:True loading:False channels: {}>

<None type:69 address:1 loaded:True loading:False channels: {}>

<None type:69 address:1 loaded:True loading:False channels: {}>

<None type:69 address:1 loaded:True loading:False channels: {}>

<None type:69 address:1 loaded:True loading:False channels: {}>

<None type:69 address:1 loaded:True loading:False channels: {}>

<None type:69 address:1 loaded:True loading:False channels: {}>

So does VMBDALI-20 (type:90)

INFO:velbus-handler:Start module scan
INFO:velbus-handler:Starting handling scan 1
INFO:velbus-handler:Starting scan 1
INFO:velbus:Found module 1: <{} type:90 address:1 loaded:False loading:False channels: {}>
DEBUG:velbus-handler:Module 1 detected: start loading
INFO:velbus-handler:Scan module 1 completed, module loaded=True
...
...
...
INFO:velbus-handler:Module scan completed
<None type:90 address:1 loaded:True loading:False channels: {}>

<None type:90 address:1 loaded:True loading:False channels: {}>

<None type:90 address:1 loaded:True loading:False channels: {}>

<None type:90 address:1 loaded:True loading:False channels: {}>

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 a pull request may close this issue.

4 participants