Skip to content

Commit b7965e7

Browse files
committed
Refactor from sync paho-mqtt to async Home Assistant MQTT client wrapper
1 parent a0cd141 commit b7965e7

File tree

16 files changed

+247
-833
lines changed

16 files changed

+247
-833
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.183.0/containers/python-3/.devcontainer/base.Dockerfile
22

3-
# [Choice] Python version: 3, 3.9, 3.8, 3.7, 3.6, 3.8
4-
ARG VARIANT="3.9"
3+
# [Choice] Python version: 3, 3.13
4+
ARG VARIANT="3.13"
55

66
#FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
7-
FROM python:3.9.2-alpine3.13 as base
7+
FROM python:3.13-alpine3.22 as base
88

99
# [Option] Install Node.js
1010
# ARG INSTALL_NODE="true"

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"dockerfile": "Dockerfile",
77
"context": "..",
88
"args": {
9-
// Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9
10-
"VARIANT": "3.9",
9+
// Update 'VARIANT' to pick a Python version: 3, 3.13
10+
"VARIANT": "3.13",
1111
// Options
1212
"INSTALL_NODE": "true",
1313
"NODE_VERSION": "lts/*"
@@ -50,7 +50,7 @@
5050
"python.formatting.provider": "black",
5151
"python.formatting.blackPath": "/usr/local/bin/black",
5252
"python.linting.flake8Path": "/usr/local/bin/flake8",
53-
"python.linting.pycodestylePath": "/usr/local/lib/python3.9/site-packages/pydocstyle",
53+
"python.linting.pycodestylePath": "/usr/local/lib/python3.13/site-packages/pydocstyle",
5454
"python.linting.pydocstylePath": "/usr/local/bin/pydocstyle",
5555
"python.linting.pylintPath": "/usr/local/bin/pylint"
5656
},

MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
include LICENSE
2-
include README.md
3-
include requirements.txt
2+
include README.md

README.md

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,14 @@
11
# elkoep-aio-mqtt
22

3-
A Python library that handles communication with inels over mqtt
4-
[iNELS](https://www.inels.com/) by ElkoEP company.
3+
A library that provides a wrapper around Home Assistant's MQTT component for communication with [iNELS](https://www.inels.com/) devices by ElkoEP company.
54

6-
[Pypi](https://pypi.org/project/elkoep-aio-mqtt/)
7-
8-
# Requirements
5+
This library is designed to run exclusively within Home Assistant and leverages Home Assistant's built-in MQTT functionality.
96

10-
For smooth using you need to have Python 3.9 or higher.
7+
[Pypi](https://pypi.org/project/elkoep-aio-mqtt/)
118

129
# Install
1310

14-
Use PyPI repository
15-
16-
```
17-
pip install elkoep-aio-mqtt
18-
```
19-
20-
# Testing
21-
22-
I use [tox](https://tox.readthedocs.io) for testing.
23-
24-
```
25-
$ pip install tox
26-
27-
```
11+
This library is designed to be installed as a dependency for the iNELS integration for Home Assistant. It is not intended to run as a standalone.
2812

2913
# Development status
3014

0 commit comments

Comments
 (0)