Skip to content
Snippets Groups Projects
Verified Commit 3b580423 authored by Erick Hitter's avatar Erick Hitter
Browse files

Version config to support breaking changes currently in the `develop` branch

Fixes #2
parent cdd57e5b
No related branches found
No related tags found
No related merge requests found
......@@ -23,5 +23,6 @@
"entity_action": ""
}
}
}
},
"config_version": 2
}
......@@ -11,7 +11,13 @@ var request = require( 'request' );
/**
* CONFIGURATION & SETUP
*/
var config = require( './config.json' );
var config = require( './config.json' );
if ( 'undefined' === typeof config.config_version || config.config_version < 2 ) {
console.error( 'Configuration is for v0.1.0 and must be updated to work with this release. Exiting!' );
process.exit();
}
var homeAssistantApiBase = config.home_assistant_proto + '://' + config.home_assistant_host + ':' + config.home_assistant_port + '/api/';
var client = new FlicClient( config.flicd_ip, config.flicd_port );
......
{
"name": "flic-button-home-assistant-controller",
"version": "0.1.0",
"version": "0.2.0",
"description": "Control Home Assistant entities with Flic buttons",
"author": "Erick Hitter <contact@ethitter.com>",
"license": "GPL-2.0+",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment