Skip to content

Commit

Permalink
Merge pull request #123 from natekspencer/dev
Browse files Browse the repository at this point in the history
Update container and build process
  • Loading branch information
natekspencer authored Nov 20, 2023
2 parents f21a930 + 89e7555 commit 1b49308
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.black-formatter",
"ms-python.vscode-pylance",
"ms-python.isort",
"ms-python.pylint",
"esbenp.prettier-vscode",
"github.vscode-pull-request-github",
"ryanluker.vscode-coverage-gutters"
Expand All @@ -20,8 +22,6 @@
"editor.tabSize": 4,
"python.pythonPath": "/usr/bin/python3",
"python.analysis.autoSearchPaths": false,
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.formatting.provider": "black",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
Expand Down
3 changes: 3 additions & 0 deletions .devcontainer/setup
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

sudo apt-get -y update
sudo apt-get install -y ffmpeg

set -e

cd "$(dirname "$0")/.."
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
release:
types: [published]

permissions: {}

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3.5.3

- name: Set version number
shell: bash
run: |
yq -i -o json '.version="${{ github.event.release.tag_name }}"' \
"${{ github.workspace }}/custom_components/vivint/manifest.json"
- name: ZIP integration directory
shell: bash
run: |
cd "${{ github.workspace }}/custom_components/vivint"
zip vivint.zip -r ./
- name: Upload ZIP file to release
uses: softprops/action-gh-release@v0.1.15
with:
files: ${{ github.workspace }}/custom_components/vivint/vivint.zip
2 changes: 1 addition & 1 deletion custom_components/vivint/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"issue_tracker": "https://github.com/natekspencer/hacs-vivint/issues",
"loggers": ["custom_components.vivint", "vivintpy"],
"requirements": ["vivintpy==2023.3.7"],
"version": "2023.8.2",
"version": "0.0.0",
"zeroconf": ["_vivint-ODC300._tcp.local.", "_vivint-DBC350._tcp.local."]
}
8 changes: 5 additions & 3 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "Vivint",
"render_readme": true,
"domains": [
"alarm_control_panel",
"binary_sensor",
Expand All @@ -12,6 +11,9 @@
"sensor",
"switch"
],
"homeassistant": "2022.4.0",
"iot_class": "Cloud Polling",
"homeassistant": "2022.4.0"
}
"render_readme": true,
"zip_release": true,
"filename": "vivint.zip"
}
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
colorlog==6.7.0
homeassistant>=2023.8
homeassistant>=2023.11
home-assistant-frontend
pip>=21.0
pylint>=2.17.3
python-dateutil
ruff==0.0.255
vivintpy>=2023.3.5

0 comments on commit 1b49308

Please sign in to comment.