Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/dashboard-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Scheduled Dashboard Release

on:
schedule:
- cron: '20 4 * * 6'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: npm install

- name: Run dashboardRelease
run: npm run dashboardRelease
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