Skip to content

Commit

Permalink
add dashboard-releases script
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonFischer04 committed Nov 12, 2023
1 parent 64183bd commit 8e0bb84
Show file tree
Hide file tree
Showing 5 changed files with 510 additions and 110 deletions.
6 changes: 4 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@ class Esphome extends utils.Adapter {
// @ts-ignore
const {getVenv} = await import('autopy');

const config = require(__dirname + '/package.json').iobroker_esphome_adapter;

// Create a virtual environment with mitmproxy installed.
const python = await getVenv({
name: 'esphome',
pythonVersion: '~3.11', // Use any Python 3.11.x version.
requirements: [{name: 'esphome', version: ''}], // Use latest esphome
pythonVersion: `~${config.python_version}`,
requirements: [{name: 'esphome', version: `==${config.dashboard_version}`}],
});

// Define directory to store configuration files
Expand Down
Loading

0 comments on commit 8e0bb84

Please sign in to comment.