Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
575 commits
Select commit Hold shift + click to select a range
761f3c0
Improve naming for send and receive tasks
brefra Aug 23, 2024
f645ccb
Add send counter to request message representation
brefra Aug 23, 2024
b6364dd
Unsubscribe to messages when error is assigned
brefra Aug 23, 2024
d911aa8
Simplify representation of CircleEnergyLogsRequest
brefra Aug 23, 2024
e1238f8
Add address to representation for CirclePlusScanRequest
brefra Aug 23, 2024
faba223
Expand representation of CirclePlusScanResponse
brefra Aug 23, 2024
f39123e
Expand representation of StickInitResponse
brefra Aug 23, 2024
036e337
Add retries to representation of Response messages
brefra Aug 23, 2024
b30d040
Return outside of try block
brefra Aug 23, 2024
5edb24c
Remove unused function
brefra Aug 23, 2024
bedb180
Keep track and log result of subscribers
brefra Aug 23, 2024
b7d16fc
Check for connection before sending requests
brefra Aug 23, 2024
18211f8
Use stick response type to validate successful sending request
brefra Aug 23, 2024
64f8504
Raise when seq_id is changed
brefra Aug 23, 2024
de373d0
Reset seq_id at timeout
brefra Aug 23, 2024
191d6d6
Remove object_id
brefra Aug 23, 2024
e3bfd80
Simplify stick response
brefra Aug 23, 2024
896a629
Rewrite response message subscription
brefra Aug 23, 2024
d96f780
Rewrite node response handling
brefra Aug 23, 2024
6850a74
Fix protocol support for clock set request
brefra Aug 23, 2024
00a7430
Correct typing
brefra Aug 23, 2024
2451efb
Only save cache when energy record is updated
brefra Aug 23, 2024
5bad9d1
Only request node info when outdated
brefra Aug 23, 2024
d24a45e
Remove redundant check
brefra Aug 23, 2024
9078b14
Cleanup and correct doc strings
brefra Aug 23, 2024
70727f8
Improve log messages
brefra Aug 23, 2024
44798c2
Improve NodeTimout error message
brefra Aug 23, 2024
dfa0246
Add extra info message
brefra Aug 23, 2024
1623b19
Remove obsolete else
brefra Aug 23, 2024
8f1cb29
Sync pyproject.toml to main branch
brefra Aug 23, 2024
de9d067
Fix logging parameters
brefra Aug 23, 2024
964f848
Raise for unsupported version
brefra Aug 23, 2024
de6fdd7
Bump version
brefra Aug 23, 2024
af430a4
Remove used constants
brefra Aug 24, 2024
e103baf
Reduce stick timeout duration
brefra Aug 24, 2024
23776d6
Apply priority to response messages too
brefra Aug 24, 2024
862d5f6
Improve logging
brefra Aug 24, 2024
4aeef0b
Create new response message objects on demand
brefra Aug 24, 2024
5291d12
Improve logging
brefra Aug 24, 2024
ca7ece3
Wait for submit worker to finish
brefra Aug 24, 2024
931c42d
Rename task
brefra Aug 24, 2024
816055f
Convert receiver into priority queue
brefra Aug 24, 2024
9645fc4
Update logging
brefra Aug 24, 2024
e628311
Bump version
brefra Aug 24, 2024
e42c2c7
Move timestamp to base message class
brefra Aug 24, 2024
96beb6e
Sort imports
brefra Aug 24, 2024
54f9b1d
Remove unused import
brefra Aug 24, 2024
c892897
Correctly shutdown receiver worker task
brefra Aug 24, 2024
ae77c33
Fix creating cache folder during initialization
brefra Aug 24, 2024
b80a355
Bump version
brefra Aug 24, 2024
bdce6b3
Do not expect the cache folder to exist
brefra Aug 24, 2024
1980cfe
Bump version
brefra Aug 24, 2024
451f3ef
Revert "Do not expect the cache folder to exist"
brefra Aug 24, 2024
260f701
Add option to create root folder for cache
brefra Aug 24, 2024
69744f9
Correct test
brefra Aug 24, 2024
736f7eb
Catch cache writing errors and log warning message
brefra Aug 25, 2024
19fc429
Do not log warning message when cache file is missing
brefra Aug 25, 2024
6dcb1e7
Add name property
brefra Aug 25, 2024
33bfceb
Improve log message
brefra Aug 25, 2024
93032ee
Improve error message
brefra Aug 25, 2024
1ce3051
Add some additional tests
brefra Aug 25, 2024
0605dae
Fix local variable name
brefra Aug 25, 2024
fac80a8
Fix tests
brefra Aug 25, 2024
fbe507b
Fix tests
brefra Aug 25, 2024
86b9986
Return subscription result
brefra Aug 25, 2024
66c0211
Add tests for changing cache state and folder
brefra Aug 25, 2024
8988097
Unnecessary elif after return
brefra Aug 25, 2024
5b56512
Fix setting cache folder
brefra Aug 25, 2024
49bdc95
Make cache_folder_create a local variable
brefra Aug 26, 2024
d35cfd1
Do not save to cache file at unload when cache is disabled
brefra Aug 26, 2024
d250626
Propagate cache state change from network to each node
brefra Aug 26, 2024
d0488f9
Bump version
brefra Aug 26, 2024
1556d02
Add missing mac for cache file name
brefra Aug 26, 2024
e39e2fc
Add additional tests for node properties
brefra Aug 26, 2024
3f3b96d
Improve log message text
brefra Aug 26, 2024
03b263e
Optimize energy log retrieval
brefra Aug 26, 2024
b0a2b62
Require python 3.11 or later
brefra Aug 26, 2024
b925a92
Remove unused import
brefra Aug 26, 2024
68825c0
Bump version
brefra Aug 26, 2024
b10def0
Add missing list expansion
brefra Aug 26, 2024
0d0a9cb
Bump to version v0.40.0a18
brefra Aug 26, 2024
b9880a3
Move generic initialize code to base class
brefra Aug 26, 2024
474ec3f
Add timestamp to indicate when initialization should be finished
brefra Aug 26, 2024
425f771
Lower log level during initialization
brefra Aug 26, 2024
ad056c3
Bump to version v0.40.0a19
brefra Aug 26, 2024
d8f3a1c
Rewrite and standardize clock synchronization methods
brefra Aug 26, 2024
fd7f574
No need to check instance
brefra Aug 26, 2024
e97d140
Remove duplicate subclass function
brefra Aug 26, 2024
5921444
Remove unused import
brefra Aug 26, 2024
1f376c9
Make model generic and add specific model type
brefra Aug 27, 2024
79ec17f
Do not log warning for awake messages during scan
brefra Aug 27, 2024
00f7694
Improve debug log message
brefra Aug 27, 2024
65538df
Return processing result for awake message
brefra Aug 27, 2024
1cf676e
Improve logging
brefra Aug 27, 2024
abc0455
Correct index
brefra Aug 27, 2024
2d1930c
Bump to version v0.40.0a20
brefra Aug 27, 2024
e9a6413
Correct test
brefra Aug 27, 2024
2e78445
Guard and log warning for receiver worker
brefra Aug 27, 2024
94f96e0
Bump to v0.40.0a21
brefra Aug 27, 2024
8828903
Fix monitoring awake state
brefra Aug 27, 2024
f4b73c2
Accept broad exception
brefra Aug 27, 2024
cab9cf1
Add model_type
brefra Aug 27, 2024
1d5d034
Remove try catch
brefra Aug 27, 2024
3d491bc
Remove comment
brefra Aug 27, 2024
a11708c
Fix operator
brefra Aug 27, 2024
196b47b
Ignore .venv folder
Sep 17, 2024
1c9cff9
Apply ruff and cleanup code
Sep 17, 2024
0ace7cd
Introduce protocol for plugwise node
Sep 29, 2024
3661b1b
Cleanup code
Sep 29, 2024
1c3d21f
Extent testing
brefra Dec 29, 2024
d34e768
Remove reduced logging
brefra Dec 29, 2024
e46b725
Add FeatureError
brefra Jan 2, 2025
fac75f6
Add Windows support to cache
brefra Jan 2, 2025
3aaadf9
Specific import
brefra Jan 5, 2025
c445b15
Update properties.py
brefra Jan 5, 2025
759c065
Subscribe to messages
brefra Jan 5, 2025
989d517
Improve and add extra tests
brefra Jan 5, 2025
8828da8
Update api.py
brefra Jan 5, 2025
b9f652c
Improve error messages
brefra Jan 5, 2025
757f349
Apply formatting
brefra Jan 5, 2025
eccf56d
Start sender
brefra Jan 5, 2025
22e6933
Add sleep to allow other tasks
brefra Jan 5, 2025
ad32c96
Create data receiver queue worker
brefra Jan 5, 2025
7c3ad68
Improve handling stick responses
brefra Jan 5, 2025
1cec057
Improve registering for message replies
brefra Jan 5, 2025
441ab67
Update NodeSleepConfigRequest
brefra Jan 5, 2025
b4b49f1
Rename SLEEP_CONFIG_* const into SED_CONFIG._*
brefra Jan 5, 2025
b716df6
Rewrite SED for battery configuration
brefra Jan 5, 2025
0164d54
Add missing timezone
brefra Jan 5, 2025
5a76872
Update NodeInfoResponse message
brefra Jan 5, 2025
dd0a653
Add NodeReJoin feature
brefra Jan 5, 2025
54c376e
Cleanup
brefra Jan 5, 2025
8b648e6
Sort, cleanup and raise correct errors
brefra Jan 5, 2025
21b147f
Improve network detection
brefra Jan 5, 2025
ab327c6
Update circle.py
brefra Jan 5, 2025
53e8700
add timestamp for last_seen
brefra Jan 5, 2025
153af33
Fix unix timestamp for image validation
brefra Jan 5, 2025
24f357a
Improve SCAN
brefra Jan 5, 2025
0588937
Update sense.py
brefra Jan 5, 2025
6882b65
Update Switch
brefra Jan 5, 2025
ab7efea
Add send
brefra Jan 5, 2025
2bb3f29
Add pylint exemptions
brefra Jan 5, 2025
283afaf
Use walrus operator
brefra Jan 5, 2025
40a0c71
Cleanup
brefra Jan 5, 2025
ebeb447
Add missing space
brefra Jan 5, 2025
e3ea006
Use walrus operator
brefra Jan 5, 2025
d81669f
Apply formattnig
brefra Jan 5, 2025
10c0613
Add too-many-positional-arguments as excemption
brefra Jan 5, 2025
8e97d35
Accept unavailable Network Coordinator
brefra Jan 10, 2025
ceae980
Return response from local variable
brefra Jan 10, 2025
3558155
Use seq_id in priority sorting if available
brefra Jan 10, 2025
8d52da0
Remove duplicate send()
brefra Jan 10, 2025
0053fc1
Update queue.py
brefra Jan 10, 2025
7d38ff6
Add waiting_for_response property
brefra Jan 10, 2025
04bfdba
Update docstring
brefra Jan 10, 2025
0711098
Update stick subscription
brefra Jan 10, 2025
c7243cd
Update write_request_to_port method
brefra Jan 10, 2025
2747264
Add extra test
brefra Jan 10, 2025
e17d481
Remove unused import
brefra Jan 10, 2025
8dabafd
Remove unused import
brefra Jan 10, 2025
07d1f71
Apply formatting
brefra Jan 10, 2025
e49c36e
Merge branch 'async' of https://github.com/plugwise/python-plugwise-u…
brefra Jan 10, 2025
f7287bf
Merge branch 'main' into async
brefra Jan 10, 2025
0179fad
Correct subscription to feature updates for only intended node
ArnoutD Jan 14, 2025
d450f03
Correct message overload on intitial circle log fetch.
ArnoutD Jan 14, 2025
2afa1ce
use os.path.join
ArnoutD Jan 14, 2025
7f2c05e
Negate SQ issue
ArnoutD Jan 14, 2025
401358a
Merge pull request #197 from plugwise/bugfix/arnout/event_and_msg_ove…
brefra Jan 17, 2025
cd7a7bb
Updating build to v0.40.0a22
ArnoutD Jan 20, 2025
60dd2af
Update CHANGELOG.md
ArnoutD Jan 20, 2025
e6fec76
Remove Protocol typing
bouwew Jan 21, 2025
f6967fd
Fix CHANGELOG
bouwew Jan 21, 2025
d051f50
Set to v0.40.0a23 test-version
bouwew Jan 31, 2025
46f065b
Try alternative solution
bouwew Feb 2, 2025
b2636bc
Set to a25
bouwew Feb 2, 2025
ad978a1
Remove unused imports
bouwew Feb 2, 2025
4aca1cb
Set receiver-logger to info
bouwew Feb 2, 2025
cac9c9f
Set to a26
bouwew Feb 2, 2025
ebba842
Merge pull request #198 from plugwise/fix-typing
bouwew Feb 6, 2025
596f47e
Bump to a27
bouwew Feb 7, 2025
c35ebd5
Update to python 3.13 update pre-commit hooks
ArnoutD Feb 8, 2025
ab7df9e
always stop running tasks even on no transport
ArnoutD Feb 8, 2025
ee79a8c
No output on stick timeout, ruff formatting
ArnoutD Feb 8, 2025
532815d
python 3.13
ArnoutD Feb 8, 2025
5d2a67e
Update github flows to 3.13
ArnoutD Feb 8, 2025
fe902b8
prevent tight loop on queue depth
ArnoutD Feb 8, 2025
8a3623d
Bump to a29
bouwew Feb 10, 2025
cb985f4
Merge pull request #202 from plugwise/bugfix/arnout/asyncio_fixes
bouwew Feb 10, 2025
54babda
Provide decoded version-number too
bouwew Feb 10, 2025
0ad8fed
Provide decode version-number as hardware/version
bouwew Feb 10, 2025
b638b31
Improve
bouwew Feb 10, 2025
9d81b76
Fix Scan hardware version
bouwew Feb 11, 2025
28daa08
Correct hardware id's
bouwew Feb 11, 2025
f0fc188
Fix version asserts
bouwew Feb 11, 2025
a52d607
Keep input version intact
bouwew Feb 11, 2025
289896f
Fix typing
bouwew Feb 11, 2025
b560cb9
Fix Circle+ hardware id
bouwew Feb 11, 2025
9ba7808
Model_type should be None when not existing
bouwew Feb 12, 2025
19d2a60
Reorder hardware devices in constants
bouwew Feb 12, 2025
faa1aae
Handle Stealth M+ model correctly
bouwew Feb 12, 2025
48d875a
Add + with space
bouwew Feb 12, 2025
e45fd22
Handle all + models correctly
bouwew Feb 12, 2025
5ebd8c5
Adapt test-asserts
bouwew Feb 12, 2025
105cade
Fix
bouwew Feb 12, 2025
63627b7
Improve guarding
bouwew Feb 12, 2025
d56f2fe
Fix combining two list items
bouwew Feb 12, 2025
6eb50d9
Merge pull request #203 from plugwise/improve-async
bouwew Feb 13, 2025
1888496
Try adding initial NodeInfoRequest to the Stick
bouwew Feb 7, 2025
68e9ed6
Add Stick NodeInfoResponse
bouwew Feb 7, 2025
e60afeb
Fix
bouwew Feb 7, 2025
2c449be
Debug, full test-output
bouwew Feb 7, 2025
232b029
Fix data
bouwew Feb 7, 2025
ed8c72a
Add Stick properties
bouwew Feb 7, 2025
870dfb3
Add stick-hw-fw asserts
bouwew Feb 7, 2025
43a5184
Use existing function
bouwew Feb 9, 2025
c3845de
Back to short test-output
bouwew Feb 9, 2025
82e434b
Enter real stick-response data
bouwew Feb 9, 2025
08347c1
Debug
bouwew Feb 9, 2025
6a3d753
Handle Stick zero-response for firmware
bouwew Feb 9, 2025
28a5667
Fix assert
bouwew Feb 9, 2025
0602201
Disable
bouwew Feb 9, 2025
5f06d7c
Try
bouwew Feb 9, 2025
b08603d
Debug
bouwew Feb 9, 2025
e434f27
Fixes
bouwew Feb 9, 2025
37f30f1
Try
bouwew Feb 9, 2025
d7591aa
Add debug-message
bouwew Feb 9, 2025
2c9e1a8
Try
bouwew Feb 9, 2025
d52826a
Remove logging, add missing
bouwew Feb 12, 2025
66cd442
Fix
bouwew Feb 12, 2025
003c65c
Update stick hardware assert
bouwew Feb 12, 2025
9e03770
Try
bouwew Feb 12, 2025
4ec68b2
Add stick firmware-assert
bouwew Feb 12, 2025
1a78559
Remove, not needed
bouwew Feb 12, 2025
4397479
Collect Stick data during initialization
bouwew Feb 12, 2025
b1314a0
Adapt asserts
bouwew Feb 12, 2025
c703f2e
Translate to short hardware-version
bouwew Feb 12, 2025
02c2724
Adapt and clean-up test-asserts
bouwew Feb 12, 2025
008b59a
Clean up debug-logging
bouwew Feb 12, 2025
d0de725
Clean-up
bouwew Feb 12, 2025
7de9d46
Pylint fix
bouwew Feb 12, 2025
d3a494a
Bump to a30
bouwew Feb 12, 2025
ea09df7
Add Stick-name property
bouwew Feb 13, 2025
a2d395a
Add related test-assert
bouwew Feb 13, 2025
ef0df7c
Bump to a31
bouwew Feb 13, 2025
f3b2e2a
Simplify property-names, improve
bouwew Feb 13, 2025
62ed325
Fix
bouwew Feb 13, 2025
91c9d1b
Merge pull request #204 from plugwise/stick-mac-fw
bouwew Feb 13, 2025
8036f85
Implement suggestion by digisaster
bouwew Feb 16, 2025
3b493f9
Import sleep
bouwew Feb 16, 2025
3dda79b
Fix typo's
bouwew Feb 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Latest release

env:
CACHE_VERSION: 21
DEFAULT_PYTHON: "3.12"
DEFAULT_PYTHON: "3.13"

# Only run on merges
on:
Expand Down
48 changes: 23 additions & 25 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
name: Latest commit

env:
CACHE_VERSION: 22
DEFAULT_PYTHON: "3.12"
CACHE_VERSION: 7
DEFAULT_PYTHON: "3.13"
PRE_COMMIT_HOME: ~/.cache/pre-commit

on:
Expand All @@ -22,7 +22,7 @@ jobs:
name: Prepare
steps:
- name: Check out committed code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v5
Expand All @@ -48,9 +48,8 @@ jobs:
pip install virtualenv --upgrade
python -m venv venv
. venv/bin/activate
pip install uv
uv pip install -U pip setuptools wheel
uv pip install -r requirements_test.txt -r requirements_commit.txt
pip install -U pip setuptools wheel
pip install -r requirements_test.txt -r requirements_commit.txt
- name: Restore pre-commit environment from cache
id: cache-precommit
uses: actions/cache@v4
Expand All @@ -72,7 +71,7 @@ jobs:
needs: prepare
steps:
- name: Check out committed code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
persist-credentials: false
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
Expand All @@ -98,7 +97,7 @@ jobs:
- name: Ruff (check)
run: |
. venv/bin/activate
#ruff check plugwise_usb/*py tests/*py
#ruff plugwise_usb/*py tests/*py
echo "***"
echo "***"
echo "Code is not up to par for ruff, skipping"
Expand All @@ -108,7 +107,7 @@ jobs:
if: failure()
run: |
. venv/bin/activate
ruff check --fix plugwise_usb/*py tests/*py
ruff --fix plugwise_usb/*py tests/*py
git config --global user.name 'autoruff'
git config --global user.email 'plugwise_usb@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.PAT_CT }}@github.com/$GITHUB_REPOSITORY
Expand All @@ -125,7 +124,7 @@ jobs:
- dependencies_check
steps:
- name: Check out committed code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -173,10 +172,10 @@ jobs:
needs: commitcheck
strategy:
matrix:
python-version: ["3.12", "3.11", "3.10"]
python-version: ["3.12", "3.11"]
steps:
- name: Check out committed code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v5
Expand All @@ -200,24 +199,23 @@ jobs:
run: |
python -m venv venv
. venv/bin/activate
pip install uv
uv pip install -U pip setuptools wheel
# uv pip install -r requirements_test.txt
pip install -U pip setuptools wheel
#pip install -r requirements_test.txt
# 20220124 Mimic setup_test.sh
uv pip install --upgrade -r requirements_test.txt -c https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/package_constraints.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test_pre_commit.txt
uv pip install --upgrade pytest-asyncio
pip install --upgrade -r requirements_test.txt -c https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/package_constraints.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test_pre_commit.txt
pip install --upgrade pytest-asyncio

pytest:
runs-on: ubuntu-latest
name: Run pytest using Python ${{ matrix.python-version }}
needs: prepare-test-cache
strategy:
matrix:
python-version: ["3.12", "3.11", "3.10"]
python-version: ["3.12", "3.11"]

steps:
- name: Check out committed code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -255,7 +253,7 @@ jobs:
needs: pytest
steps:
- name: Check out committed code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
persist-credentials: false
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
Expand Down Expand Up @@ -295,7 +293,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out committed code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master

Expand All @@ -305,7 +303,7 @@ jobs:
name: Dependency
steps:
- name: Check out committed code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Run dependency checker
run: scripts/dependencies_check.sh debug

Expand All @@ -315,7 +313,7 @@ jobs:
needs: pytest
steps:
- name: Check out committed code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -360,7 +358,7 @@ jobs:
needs: [coverage, mypy]
steps:
- name: Check out committed code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -403,7 +401,7 @@ jobs:
needs: coverage
steps:
- name: Check out committed code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v5
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tests/__pycache__
.coverage
.vscode
venv
.venv
fixtures/*
!fixtures/.keep
*.sedbck
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ci:

default_language_version:
# force all unspecified python hooks to run python3
python: python3.12
python: python3.13

repos:
# Run manually in CI skipping the branch checks
Expand All @@ -28,18 +28,18 @@ repos:
args:
- --branch=main
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py39-plus]
# Moved codespell configuration to setup.cfg as per 'all-files' issues not reading args
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
exclude_types: [csv, json]
- repo: https://github.com/PyCQA/bandit
rev: 1.8.0
rev: 1.8.2
hooks:
- id: bandit
args:
Expand All @@ -52,7 +52,7 @@ repos:
hooks:
- id: yamllint
- repo: https://github.com/biomejs/pre-commit
rev: v0.5.0
rev: v0.6.1
hooks:
- id: biome-lint
additional_dependencies: ["@biomejs/biome@1.8.3"]
Expand Down Expand Up @@ -102,6 +102,6 @@ repos:
language: script
pass_filenames: false
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
rev: v0.44.0
hooks:
- id: markdownlint
20 changes: 15 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
# Changelog

## Ongoing
## v0.40.0 (a22)

- Ensure CI process remains operational
- Bumped pip to now prepend uv for using quicker dependency resolving and installing
- As for latest HA Core USB team should rework to python 3.12 (not still 3.10)
- Correcting messageflow to HA

## v0.40.0 (a4)

Full rewrite of library into async version. Main list of changes:

- Full async and typed
- Improved protocol handling
- Support for local caching of collected data to improve startup and device detection
- Improved handling of edge cases especially for energy data collection
- Based on detected firmware version enable the supported features
- API details about supported data is combined into api.py
- Added tests

## v0.31.4(a0)

- Re-add python 3.12 checks and compatibility

## v0.31.3

- Bugfix midnight rollover for cicrles without power usage registered during first hour(s)
- Bugfix midnight rollover for circles without power usage registered during first hour(s)

## v0.31.2

Expand Down
Loading
Loading