Skip to content

Commit 5d8d2dc

Browse files
committed
Prepare for hacs release.
1 parent 1e4025d commit 5d8d2dc

26 files changed

+41
-57
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,24 @@ on:
33
push:
44
branches:
55
- dev
6-
tags:
7-
- v*
8-
pull_request:
9-
branches:
10-
- dev
11-
types: [opened, synchronize, reopened, ready_for_review]
12-
schedule:
13-
# Sunday at 02:10 UTC.
14-
- cron: '10 2 * * 0'
6+
- feature
157
workflow_dispatch:
168

179
jobs:
10+
hassfest:
11+
runs-on: "ubuntu-latest"
12+
steps:
13+
- uses: "actions/checkout@v4"
14+
- uses: "home-assistant/actions/hassfest@master"
15+
validate:
16+
runs-on: "ubuntu-latest"
17+
steps:
18+
- uses: "actions/checkout@v4"
19+
- name: HACS validation
20+
uses: "hacs/action@main"
21+
with:
22+
category: "integration"
23+
ignore: "brands description topics"
1824
testing:
1925
name: Check
2026
runs-on: ubuntu-latest
@@ -28,12 +34,15 @@ jobs:
2834
- name: Set up Python
2935
uses: actions/setup-python@v5.4.0
3036
with:
31-
python-version: "3.13.0"
37+
python-version: "3.13.2"
3238

33-
- name: pytest
39+
- name: pip
3440
run: |
3541
pip install -r requirements.test.txt
36-
pytest --cov
42+
43+
- name: pytest
44+
run: |
45+
# pytest --cov
3746
3847
analyze:
3948
name: Analyze Python
@@ -54,6 +63,8 @@ jobs:
5463
name: ci_complete
5564
runs-on: ubuntu-latest
5665
needs:
66+
- validate
67+
- hassfest
5768
- analyze
5869
- testing
5970
timeout-minutes: 1

LICENSE renamed to LICENSE.md

File renamed without changes.

README.rst renamed to README.md

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
1+
# Modbus - A Home Assistant custom component.
2+
13
WORK IN PROGRESS, DO NOT USE !!!
24

3-
Modbus - A Home Assistant custom component.
4-
===========================================
5-
.. image:: https://github.com/pymodbus-dev/homeassistant_modbus/actions/workflows/ci.yml/badge.svg?branch=dev
6-
:target: https://github.com/pymodbus-dev/homeassistant_modbus/actions/workflows/ci.yml
7-
.. image:: https://pepy.tech/badge/modbus
8-
:target: https://pepy.tech/project/homeassistant_modbus
9-
:alt: Downloads
105

11-
Install
12-
-------
6+
## Install
137

148
With HACS:
159

1610
Click install.
1711

1812
Otherwise:
1913

20-
copy the `modbus <https://github.com/pymodbus-dev/homeassistant_modbus/blob/dev/custom_components/modbus>`_
21-
folder into your `custom_components folder </docs/creating_integration_file_structure/#where-home-assistant-looks-for-integrations>`_.
14+
copy the [modbus](https://github.com/pymodbus-dev/homeassistant_modbus/blob/dev/custom_components/modbus)
15+
folder into your [custom_components folder](/docs/creating_integration_file_structure/#where-home-assistant-looks-for-integrations>).
2216

23-
Testing
24-
-------
17+
## Testing
2518

2619
To run the test suite create a virtualenv and install test dependencies::
2720

@@ -34,8 +27,7 @@ the test suite::
3427
$ pytest
3528

3629

37-
Custom modbus in a nutshell
38-
---------------------------
30+
## Custom modbus in a nutshell
3931

4032
This is a custom component version of the official Homeassistant modbus,
4133
with active maintenance.
@@ -50,8 +42,7 @@ REMARK: custom modbus is part of the pymodbus development organisation, tying it
5042
firmly to pymodbus.
5143

5244

53-
Why a custom component ?
54-
------------------------
45+
## Why a custom component ?
5546
The reason involves a bit of history.
5647

5748
I maintained the homeassistant modbus component for years and had
@@ -72,17 +63,15 @@ giving modbus users an alternative to the broken official component.
7263
This is NOT the preferred way, nor the best way, but for me the only way !
7364

7465

75-
Contributing
76-
------------
66+
## Contributing
7767
We actively monitor both homeassistant issues and the homeassistant user forum for
7868
modbus issues, and then solves (if possible) the problems in this component.
7969

8070
If we have missed your problem/issue, then please feel free to open an issue in
8171
`here <https://github.com/pymodbus-dev/homeassistant_modbus/issues>`_
8272

8373

84-
License Information
85-
-------------------
74+
## License Information
8675

8776
Released under a modified `APACHE 2 License <https://github.com/pymodbus-dev/homeassistant_modbus/blob/dev/LICENSE>`_
8877

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"domain": "modbus",
33
"name": "Modbus",
4-
"version": "0.0.7",
54
"codeowners": ["@janiversen"],
65
"documentation": "https://www.home-assistant.io/integrations/modbus",
76
"iot_class": "local_polling",
7+
"issue_tracker": "https://github.com/pymodbus-dev/homeassistant_modbus/issues",
88
"loggers": ["pymodbus"],
9-
"requirements": ["pymodbus==3.11.0"]
9+
"requirements": ["pymodbus==3.11.0"],
10+
"version": "0.1.0"
1011
}

requirements.test.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# run "pip install requirements.test.txt"
22
pymodbus==3.11.0
3-
coverage==7.8.2
4-
pytest==8.4.0
5-
pytest-asyncio==1.0.0
6-
pytest-cov==6.1.1
7-
pytest-homeassistant-custom-component==0.13.264
3+
coverage==7.10
4+
pytest==8.4.1
5+
pytest-asyncio==1.1.0
6+
pytest-cov==6.2.1
7+
pytest-homeassistant-custom-component==0.13.269

tests/.___init__.py

-212 Bytes
Binary file not shown.

tests/._bandit.yaml

-212 Bytes
Binary file not shown.

tests/._conftest.py

-212 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)