From 133c80ea6e39cdedd64873ce4106c78f652d1bb0 Mon Sep 17 00:00:00 2001 From: Alex Jung Date: Sun, 15 Dec 2024 21:26:47 +0100 Subject: [PATCH] Prepare default integration (#15) * added workflow files for HACS validation * ready for HACS default --- .devcontainer/configuration.yaml | 8 -------- .devcontainer/devcontainer.json | 7 ------- .github/workflows/hassfest.yml | 14 ++++++++++++++ .github/workflows/validate.yml | 18 ++++++++++++++++++ hacs.json | 5 +---- 5 files changed, 33 insertions(+), 19 deletions(-) delete mode 100644 .devcontainer/configuration.yaml delete mode 100644 .devcontainer/devcontainer.json create mode 100644 .github/workflows/hassfest.yml create mode 100644 .github/workflows/validate.yml diff --git a/.devcontainer/configuration.yaml b/.devcontainer/configuration.yaml deleted file mode 100644 index 0b36650..0000000 --- a/.devcontainer/configuration.yaml +++ /dev/null @@ -1,8 +0,0 @@ -default_config: - -logger: - default: info - logs: - custom_components.ha_departures: debug -# If you need to debug uncommment the line below (doc: https://www.home-assistant.io/integrations/debugpy/) -# debugpy: diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index bee9bb5..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,7 +0,0 @@ -// See https://aka.ms/vscode-remote/devcontainer.json for format details. -{ - "image": "ludeeus/container:integration-debian", - "name": "Public Transport Departures integration development", - "appPort": ["9123:8123"], - "postCreateCommand": "container install" -} diff --git a/.github/workflows/hassfest.yml b/.github/workflows/hassfest.yml new file mode 100644 index 0000000..0a1bd9c --- /dev/null +++ b/.github/workflows/hassfest.yml @@ -0,0 +1,14 @@ +name: Validate with hassfest + +on: + push: + pull_request: + schedule: + - cron: '0 0 * * *' + +jobs: + validate: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v4" + - uses: "home-assistant/actions/hassfest@master" \ No newline at end of file diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..b35fbeb --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,18 @@ +name: Validate + +on: + push: + pull_request: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +jobs: + validate-hacs: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v4" + - name: HACS validation + uses: "hacs/action@main" + with: + category: "integration" \ No newline at end of file diff --git a/hacs.json b/hacs.json index 67bf8f9..70fe56c 100644 --- a/hacs.json +++ b/hacs.json @@ -1,7 +1,4 @@ { "name": "Public Transport Departures", - "hacs": "1.6.0", - "domains": ["sensor"], - "iot_class": "Cloud Polling", - "homeassistant": "0.118.0" + "country": "DE" }