diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml new file mode 100644 index 0000000..4b041d1 --- /dev/null +++ b/.github/workflows/validate.yaml @@ -0,0 +1,23 @@ +name: Validate + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + validate-hacs: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v3" + - name: HACS validation + uses: "hacs/action@main" + with: + category: "integration" + + validate-hassfest: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v3" + - name: Hassfest validation + uses: home-assistant/actions/hassfest@master diff --git a/README.md b/README.md index 072a666..687ce82 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Button+ integration for Home Assistant -![img.png](resource%2Fimg.png) -This integration allows you to setup and control your Button+ device from Home Assistant. +![img.png](img.png) +This integration allows you to set up and control your Button+ device from Home Assistant. -Currently this project is in development and **highly** unstable. +Currently, this project is in development and **highly** unstable. ## Documentation diff --git a/__init__.py b/custom_components/button_plus/__init__.py similarity index 100% rename from __init__.py rename to custom_components/button_plus/__init__.py diff --git a/button.py b/custom_components/button_plus/button.py similarity index 100% rename from button.py rename to custom_components/button_plus/button.py diff --git a/button_plus_api/RGBColorConverter.py b/custom_components/button_plus/button_plus_api/RGBColorConverter.py similarity index 100% rename from button_plus_api/RGBColorConverter.py rename to custom_components/button_plus/button_plus_api/RGBColorConverter.py diff --git a/button_plus_api/__init__.py b/custom_components/button_plus/button_plus_api/__init__.py similarity index 100% rename from button_plus_api/__init__.py rename to custom_components/button_plus/button_plus_api/__init__.py diff --git a/button_plus_api/api_client.py b/custom_components/button_plus/button_plus_api/api_client.py similarity index 100% rename from button_plus_api/api_client.py rename to custom_components/button_plus/button_plus_api/api_client.py diff --git a/button_plus_api/local_api_client.py b/custom_components/button_plus/button_plus_api/local_api_client.py similarity index 100% rename from button_plus_api/local_api_client.py rename to custom_components/button_plus/button_plus_api/local_api_client.py diff --git a/button_plus_api/model.py b/custom_components/button_plus/button_plus_api/model.py similarity index 100% rename from button_plus_api/model.py rename to custom_components/button_plus/button_plus_api/model.py diff --git a/buttonplushub.py b/custom_components/button_plus/buttonplushub.py similarity index 100% rename from buttonplushub.py rename to custom_components/button_plus/buttonplushub.py diff --git a/config_flow.py b/custom_components/button_plus/config_flow.py similarity index 100% rename from config_flow.py rename to custom_components/button_plus/config_flow.py diff --git a/const.py b/custom_components/button_plus/const.py similarity index 100% rename from const.py rename to custom_components/button_plus/const.py diff --git a/coordinator.py b/custom_components/button_plus/coordinator.py similarity index 100% rename from coordinator.py rename to custom_components/button_plus/coordinator.py diff --git a/light.py b/custom_components/button_plus/light.py similarity index 100% rename from light.py rename to custom_components/button_plus/light.py diff --git a/manifest.json b/custom_components/button_plus/manifest.json similarity index 65% rename from manifest.json rename to custom_components/button_plus/manifest.json index 69ad53f..14c72b5 100644 --- a/manifest.json +++ b/custom_components/button_plus/manifest.json @@ -5,13 +5,15 @@ "@koenhendriks" ], "config_flow": true, - "dependencies": [], + "dependencies": [ + "mqtt" + ], "documentation": "https://github.com/koenhendriks/ha-button-plus", "homekit": {}, - "iot_class": "local_push", "integration_type": "hub", - "requirements": [ - ], - "version": "0.1.0", + "iot_class": "local_push", + "issue_tracker": "https://github.com/koenhendriks/ha-button-plus/issues", + "requirements": [], + "version": "0.0.1", "zeroconf": [] } diff --git a/resource/config.json.notes b/custom_components/button_plus/resource/config.json.notes similarity index 100% rename from resource/config.json.notes rename to custom_components/button_plus/resource/config.json.notes diff --git a/resource/physicalconfig.json b/custom_components/button_plus/resource/physicalconfig.json similarity index 100% rename from resource/physicalconfig.json rename to custom_components/button_plus/resource/physicalconfig.json diff --git a/resource/physicalconfig1.07.json b/custom_components/button_plus/resource/physicalconfig1.07.json similarity index 100% rename from resource/physicalconfig1.07.json rename to custom_components/button_plus/resource/physicalconfig1.07.json diff --git a/resource/push config.txt b/custom_components/button_plus/resource/push config.txt similarity index 100% rename from resource/push config.txt rename to custom_components/button_plus/resource/push config.txt diff --git a/resource/virtualconfig.json b/custom_components/button_plus/resource/virtualconfig.json similarity index 100% rename from resource/virtualconfig.json rename to custom_components/button_plus/resource/virtualconfig.json diff --git a/sensor.py b/custom_components/button_plus/sensor.py similarity index 100% rename from sensor.py rename to custom_components/button_plus/sensor.py diff --git a/switch.py b/custom_components/button_plus/switch.py similarity index 100% rename from switch.py rename to custom_components/button_plus/switch.py diff --git a/text.py b/custom_components/button_plus/text.py similarity index 100% rename from text.py rename to custom_components/button_plus/text.py diff --git a/translations/en.json b/custom_components/button_plus/translations/en.json similarity index 100% rename from translations/en.json rename to custom_components/button_plus/translations/en.json diff --git a/custom_components/hacs.json b/custom_components/hacs.json new file mode 100644 index 0000000..0bef404 --- /dev/null +++ b/custom_components/hacs.json @@ -0,0 +1,9 @@ +{ + "name": "Button+ Integration", + "content_in_root": false, + "zip_release": false, + "render_readme": true, + "hide_default_branch": true, + "country": ["US", "UK"], + "homeassistant": "2023.8.0" +} diff --git a/resource/img.png b/img.png similarity index 100% rename from resource/img.png rename to img.png