Cereal2nd / velbus-aio

Velbus Asyncio
Apache License 2.0
14 stars 10 forks source link

Override load_default_channels() for VMBDALI module. #103

Closed niobos closed 1 month ago

niobos commented 1 month ago

The VMBDALI module has a variable number of channels. This patch initializes all possible sub-channels, and removes unused ones later in the startup process.

This fixes #102.

The method rename is needed because Python considers __* methods private to the class, i.e. they're not overridable by a subclass.