Skip to content

Commit

Permalink
Bugfix : Make yaml file persistent and include in backup
Browse files Browse the repository at this point in the history
  • Loading branch information
DutchmanNL committed May 27, 2021
1 parent e89991a commit 2d95878
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ If you like my work, please consider a personal donation
-->

### __WORK IN PROGRESS__
* (DutchmanNL) [!!! Breaking !!!] Make YAML file persistent, backup your configuration before updating !
* (DutchmanNL) Bugfix : Reconnect to devices without autodiscovery / MDNS-Broadcast in network

### 0.2.1-1 (2021-03-30)
Expand Down
1 change: 1 addition & 0 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
"dsn": "https://[email protected]/122"
}
},
"dataFolder": "esphome.%INSTANCE%",
"localLink": "http://%ESPHomeDashboardIP%:%ESPHomeDashboardPort%",
"adminTab": {
"link": "http://%ESPHomeDashboardIP%:%ESPHomeDashboardPort%",
Expand Down
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ class Esphome extends utils.Adapter {

try {

dashboardProcess = spawn(`npm`, [`run`, `-s`, `nopy`, `/opt/iobroker/node_modules/iobroker.esphome/python_modules/bin/esphome`, `config/`, `dashboard`], {
// Define directory to store configuration files
const dataDir = utils.getAbsoluteDefaultDataDir();
dashboardProcess = spawn(`npm`, [`run`, `-s`, `nopy`, `/opt/iobroker/node_modules/iobroker.esphome/python_modules/bin/esphome`, `${dataDir}esphome.${this.instance}`, `dashboard`], {
cwd: '/opt/iobroker/node_modules/iobroker.esphome'
});

Expand Down

0 comments on commit 2d95878

Please sign in to comment.