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