Parser unified with config so calling ClearpathConfig(config) or ClearpathConfig(path) will both parse the passed dictionary or YAML file.
BaseConfig:
all config classes now inherit from BaseConfig which handles all parsing and writing of config.
YAML file changes:
system.self moved to system.hosts.self since self is supposed to indicate the hostname of the computer this config should be ran on.
platform.serial_number moved to global serial_number since it is a globally used parameter that is crucial in changing the way the config behaves.
File Path Changes:
common.py split into directories common.types and common.utils preventing having a large file with utilities and types mixed together
system, platform, accessories, mounts, and sensors had the same change applied to them, types folders include all classes that hold information about each entity in the config.
Parser unified with config so calling
ClearpathConfig(config)
orClearpathConfig(path)
will both parse the passed dictionary or YAML file.BaseConfig:
BaseConfig
which handles all parsing and writing of config.YAML file changes:
system.self
moved tosystem.hosts.self
sinceself
is supposed to indicate the hostname of the computer this config should be ran on.platform.serial_number
moved to globalserial_number
since it is a globally used parameter that is crucial in changing the way the config behaves.File Path Changes:
common.py
split into directoriescommon.types
andcommon.utils
preventing having a large file with utilities and types mixed togethertypes
folders include all classes that hold information about each entity in the config.parser.py