diff --git a/.github/workflows/hassfest.yaml b/.github/workflows/hassfest.yaml new file mode 100644 index 0000000..bf1b612 --- /dev/null +++ b/.github/workflows/hassfest.yaml @@ -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@v3" + - uses: home-assistant/actions/hassfest@master \ No newline at end of file diff --git a/custom_components/elektro_network_tariff/manifest.json b/custom_components/elektro_network_tariff/manifest.json index 0651cbd..1424bc3 100644 --- a/custom_components/elektro_network_tariff/manifest.json +++ b/custom_components/elektro_network_tariff/manifest.json @@ -1,11 +1,12 @@ { "domain": "elektro_network_tariff", "name": "Elektro Network Tariff", - "documentation": "https://github.com/frlequ/elektro_network_tariff", - "dependencies": [], "codeowners": ["@frlequ"], - "version": "0.1.1", - "requirements": [], + "dependencies": [], + "documentation": "https://github.com/frlequ/elektro_network_tariff", "integration_type": "entity", - "iot_class": "local_polling" -} + "iot_class": "local_polling", + "issue_tracker": "https://github.com/frlequ/elektro_network_tariff/issues", + "requirements": [], + "version": "0.1.1" +} \ No newline at end of file diff --git a/hacs.json b/hacs.json new file mode 100644 index 0000000..ca9272e --- /dev/null +++ b/hacs.json @@ -0,0 +1,5 @@ +{ + "name": "Network Tariff", + "homeassistant": "2023.8.0", + "render_readme": true +} diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..ee45470 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,5 @@ +[mypy] +ignore_missing_imports = True + +[mypy-voluptuous] +ignore_missing_imports = True diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ + diff --git a/requirements_dev.txt b/requirements_dev.txt new file mode 100644 index 0000000..1f92b21 --- /dev/null +++ b/requirements_dev.txt @@ -0,0 +1,5 @@ +black>=22.12 +flake8>=6.0 +mypy>=0.991 +pylint>=2.15 +types-requests