diff --git a/.github/workflows/combined.yaml b/.github/workflows/combined.yaml deleted file mode 100644 index 8cad813..0000000 --- a/.github/workflows/combined.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: "Validation And Formatting" -on: - push: - pull_request: - schedule: - - cron: '0 0 * * *' -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - name: Download repo - with: - fetch-depth: 0 - - uses: actions/setup-python@v2 - name: Setup Python - - uses: actions/cache@v2 - name: Cache - with: - path: | - ~/.cache/pip - key: custom-component-ci - - uses: KTibow/ha-blueprint@stable - name: CI - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tox.yaml b/.github/workflows/tox.yaml index 05465c0..a7910f4 100644 --- a/.github/workflows/tox.yaml +++ b/.github/workflows/tox.yaml @@ -1,6 +1,8 @@ name: Tox PR CI -on: [pull_request] +on: + pull_request: + workflow_dispatch: jobs: build: diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..f0e209c --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,20 @@ +name: HACS Validate + +on: + push: + pull_request: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +jobs: + validate-hacs: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v3" + - name: HACS validation + uses: "hacs/action@main" + with: + category: "integration" + - name: Hassfest validation + uses: home-assistant/actions/hassfest@master diff --git a/custom_components/localtuya/manifest.json b/custom_components/localtuya/manifest.json index 3f1e00b..e492348 100644 --- a/custom_components/localtuya/manifest.json +++ b/custom_components/localtuya/manifest.json @@ -1,14 +1,14 @@ { "domain": "localtuya", "name": "LocalTuya integration", - "version": "5.0.0", - "documentation": "https://github.com/rospogrigio/localtuya/", - "dependencies": [], "codeowners": [ "@rospogrigio", "@postlund" ], + "config_flow": true, + "dependencies": [], + "documentation": "https://github.com/rospogrigio/localtuya/", + "iot_class": "local_push", "issue_tracker": "https://github.com/rospogrigio/localtuya/issues", "requirements": [], - "config_flow": true, - "iot_class": "local_push" + "version": "5.0.1" } diff --git a/hacs.json b/hacs.json index 3c5a41a..0496f6f 100644 --- a/hacs.json +++ b/hacs.json @@ -1,6 +1,4 @@ { "name": "Local Tuya", - "domains": ["climate", "cover", "fan", "light", "number", "select", "sensor", "switch"], - "homeassistant": "0.116.0", - "iot_class": ["Local Push"] + "homeassistant": "0.116.0" } diff --git a/tox.ini b/tox.ini index 031fef7..a0b7eac 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ python = [testenv] passenv = TOXENV,CI -whitelist_externals = +allowlist_externals = true setenv = LANG=en_US.UTF-8