From be28f65433e44b01434f45c95a866549a393e298 Mon Sep 17 00:00:00 2001 From: Alex X Date: Sun, 7 Apr 2024 06:22:18 +0300 Subject: [PATCH] Add new github workflow for hacs --- .github/workflows/hacs.yml | 18 ++++++++++++++++++ .github/workflows/validate.yml | 17 ----------------- custom_components/dash_cast/manifest.json | 12 ++++++++---- custom_components/dash_cast/services.yaml | 8 ++------ 4 files changed, 28 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/hacs.yml delete mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/hacs.yml b/.github/workflows/hacs.yml new file mode 100644 index 0000000..765435a --- /dev/null +++ b/.github/workflows/hacs.yml @@ -0,0 +1,18 @@ +name: HACS validation + +on: + push: + pull_request: + +jobs: + hacs: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v2" + - uses: "hacs/action@main" + with: { category: "integration" } + hassfest: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v3" + - uses: "home-assistant/actions/hassfest@master" diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml deleted file mode 100644 index 0844926..0000000 --- a/.github/workflows/validate.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Validate - -on: - push: - pull_request: -# schedule: -# - cron: "0 0 * * *" - -jobs: - validate: - runs-on: "ubuntu-latest" - steps: - - uses: "actions/checkout@v2" - - name: HACS validation - uses: "hacs/action@main" - with: - category: "integration" \ No newline at end of file diff --git a/custom_components/dash_cast/manifest.json b/custom_components/dash_cast/manifest.json index 5c059cb..3858a05 100644 --- a/custom_components/dash_cast/manifest.json +++ b/custom_components/dash_cast/manifest.json @@ -1,12 +1,16 @@ { "domain": "dash_cast", "name": "DashCast", + "codeowners": [ + "@AlexxIT" + ], "config_flow": true, + "dependencies": [ + "cast" + ], "documentation": "https://github.com/AlexxIT/DashCast", + "iot_class": "calculated", "issue_tracker": "https://github.com/AlexxIT/DashCast/issues", - "codeowners": ["@AlexxIT"], - "dependencies": ["cast"], "requirements": [], - "version": "1.0.0", - "iot_class": "calculated" + "version": "1.0.0" } diff --git a/custom_components/dash_cast/services.yaml b/custom_components/dash_cast/services.yaml index b02bde9..f675a22 100644 --- a/custom_components/dash_cast/services.yaml +++ b/custom_components/dash_cast/services.yaml @@ -1,23 +1,19 @@ load_url: name: DashCast - description: 'Send websites to Chromecasts' + description: Send websites to Chromecasts fields: entity_id: - description: Media player entity - example: media_player.mibox4 required: true selector: entity: integration: cast domain: media_player - url: description: Webpage URL - example: http://yandex.ru/pogoda/moscow + example: https://www.home-assistant.io/ required: true selector: text: - force: description: Use this option if iframe blocking is enabled on the site default: false