Skip to content

Commit

Permalink
Fix VMBDALI
Browse files Browse the repository at this point in the history
Fixes #114
  • Loading branch information
niobos committed Jul 22, 2024
1 parent e580394 commit 728c236
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions velbusaio/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ async def load(self, from_cache: bool = False) -> None:
except OSError:
cache = {}
# load default channels
await self.__load_default_channels()
await self._load_default_channels()

# load the data from memory ( the stuff that we need)
if "name" in cache and cache["name"] != "":
Expand Down Expand Up @@ -722,7 +722,7 @@ async def __load_memory(self) -> None:
msg.low_address = addr[1]
await self._writer(msg)

async def __load_default_channels(self) -> None:
async def _load_default_channels(self) -> None:
if "Channels" not in self._data:
return

Expand Down Expand Up @@ -771,7 +771,6 @@ def __init__(
self.group_members: dict[int, set[int]] = {}

async def _load_default_channels(self) -> None:
await super().load()
for chan in range(1, 64 + 1):
self._channels[chan] = Channel(
self, chan, "placeholder", True, self._writer, self._address
Expand Down

0 comments on commit 728c236

Please sign in to comment.