Skip to content

Commit

Permalink
refactor: Remove old config migration code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Aug 26, 2023
1 parent 810e2e7 commit d34f49c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions backend/lib/Configuration.js
Expand Up @@ -79,12 +79,7 @@ class Configuration {
Logger.info(`Migrating config from ${parsedConfig._version} to ${Tools.GET_VALETUDO_VERSION()}`);

// BEGIN migration code to be removed with the next version
if (!parsedConfig.mqtt.optionalExposedCapabilities.includes("CurrentStatisticsCapability")) {
parsedConfig.mqtt.optionalExposedCapabilities.push("CurrentStatisticsCapability");
}
if (!parsedConfig.mqtt.optionalExposedCapabilities.includes("ConsumableMonitoringCapability")) {
parsedConfig.mqtt.optionalExposedCapabilities.push("ConsumableMonitoringCapability");
}

// END migration code to be removed with the next version

parsedConfig._version = Tools.GET_VALETUDO_VERSION();
Expand Down

0 comments on commit d34f49c

Please sign in to comment.