parse channels config as a list

master
HgO 2020-12-26 11:10:59 +01:00
parent 0eb99184b0
commit 843c94ef96
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import yaml
import Murmur import Murmur
CONFIG_SEARCH_PATH = [".", "/etc"] CONFIG_SEARCH_PATH = [".", "/etc"]
CONFIG_DEFAULT_NAME = "mice.yml" CONFIG_DEFAULT_NAME = "mice.yml"
@ -271,7 +272,7 @@ class Config:
def parse_channels(self) -> Channel: def parse_channels(self) -> Channel:
channels = [] channels = []
for channel_dict in self._data["channels"]: for channel_dict in self._data:
channel = Channel.from_dict(channel_dict) channel = Channel.from_dict(channel_dict)
channels.append(channel) channels.append(channel)