Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
762 commits
Select commit Hold shift + click to select a range
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
f06175a
Try negative amounts of pulses
bouwew Feb 19, 2025
5c21e36
Disable protection
bouwew Feb 19, 2025
2c1a127
Try method from PHP-code
bouwew Feb 19, 2025
f3bed4d
Change to a production/negative power return and assert
bouwew Feb 21, 2025
427d625
Bump to a33
bouwew Feb 21, 2025
077a435
Merge pull request #209 from plugwise/production
bouwew Mar 1, 2025
a056e98
Handle negative energy-pulse values
bouwew Mar 3, 2025
bc58070
Extend logging showing production pulses
bouwew Mar 5, 2025
6e10e93
Add debug-message showing CircleEnergyLog data
bouwew Mar 10, 2025
944e34c
Add MAC to CircleEnergy log-message
bouwew Mar 23, 2025
890bfbc
Add collected_pulses debug-logging
bouwew Mar 13, 2025
0b5c553
Fix typo in logging
bouwew Mar 13, 2025
f4ad4ab
Extend collected_pulses logging
bouwew Mar 14, 2025
2bc498b
Add_log(): support both cons-/prod-type of logs
bouwew Mar 23, 2025
d585a88
Add missing await for energy_log_update()
bouwew Mar 16, 2025
622b5ca
Add missing line in _reset_log_references()
bouwew Mar 17, 2025
e4b109d
Formatting, remove wrong guarding(?)
bouwew Mar 23, 2025
ae33e72
Don't update production_log_refs when not required
bouwew Mar 18, 2025
9dcba83
Formatting
bouwew Mar 23, 2025
9c59cbd
Add guarding for production _energy_statistics
bouwew Mar 23, 2025
29a9252
Don't update production rollover when no production
bouwew Mar 18, 2025
cef0b64
Update _update_rollover() docstring
bouwew Mar 22, 2025
59e76dd
Output production-statistics as positive values
bouwew Mar 23, 2025
dbe9fd8
Bump to a55
bouwew Mar 23, 2025
fe96f99
Change-update _logs_missing logging
bouwew Mar 23, 2025
026d11c
Improve logging, formatting
bouwew Mar 23, 2025
142b7f6
Bump to a56
bouwew Mar 23, 2025
9ead2f5
Pulses_production/_produced are negative
bouwew Mar 23, 2025
06ad566
Bump to a57
bouwew Mar 23, 2025
2a75755
Formatting
bouwew Mar 23, 2025
8d9b4e4
Formatting
bouwew Mar 23, 2025
6ae788e
Set MAX_LOG_HOURS to 24
bouwew Mar 23, 2025
145983c
Bump to a58
bouwew Mar 23, 2025
175dc10
Add idea-text to update_pulse_counter() docstring
bouwew Mar 23, 2025
01a8ec0
update_pulse_counter(): add rollover log-debug-messages
bouwew Mar 24, 2025
4146840
collected_pulses(): don't return None's at rollover
bouwew Mar 24, 2025
f15f11f
Set to a59
bouwew Mar 24, 2025
bac0c4e
Fix related test-assert
bouwew Mar 24, 2025
ce3742a
Fix 2nd related test-assert
bouwew Mar 24, 2025
719b737
Remove commented-out code
bouwew Mar 24, 2025
ad4c29f
Clean up update_pulse_counter() docstring
bouwew Mar 24, 2025
c26857d
Revert back to WEEK_IN_HOURS
bouwew Mar 24, 2025
a6a5351
Bump to a60
bouwew Mar 24, 2025
6b4aa61
_add_log_record(): formatting
bouwew Mar 24, 2025
5803e55
Fix typo in comment
bouwew Mar 24, 2025
d2a6db7
Formatting
bouwew Mar 26, 2025
d9c2afc
Add pulsecounter_reset booleans, and detection
bouwew Mar 26, 2025
a8bfbc0
Add counter_reset guarding for log_pulses reset
bouwew Mar 27, 2025
b5b3e19
Improve
bouwew Mar 27, 2025
6060f5e
Bump to a62
bouwew Mar 27, 2025
ae7f823
Use common _pulsecounter_reset to reset both counters while only one …
bouwew Mar 27, 2025
e6d158e
Bump to a63
bouwew Mar 27, 2025
b08cb08
Set MAX_LOG_HOURS to DAY_IN_HOURS
bouwew Mar 27, 2025
daada32
Remove all week-related EnergyTypes
bouwew Mar 27, 2025
b21e015
Start cleaning week-related test-asserts
bouwew Mar 27, 2025
b2bb99e
Counter.py: clean up imports
bouwew Mar 27, 2025
a24cb79
Don't use gather
bouwew Mar 27, 2025
acbab3c
Bump to a64
bouwew Mar 27, 2025
109c50d
_collect_pulses_from_logs(): add debug-logging
bouwew Mar 28, 2025
474f19d
Fix typo in comment
bouwew Mar 28, 2025
14e6f57
Bump to a65
bouwew Mar 28, 2025
975d8bc
Try to not block the event_loop
bouwew Mar 28, 2025
fff6bc6
Bump to a66
bouwew Mar 28, 2025
4a9b2b3
Revert "Try to not block the event_loop"
bouwew Mar 28, 2025
9e896e4
Try something else
bouwew Mar 28, 2025
5953917
Bump to a67
bouwew Mar 28, 2025
50ef927
Improve _collect_pulses_from_logs()
bouwew Mar 28, 2025
d366bea
Bump to a68
bouwew Mar 28, 2025
e43e97e
Try to avoid using asyncio_sleep()
bouwew Mar 28, 2025
d5278ce
Bump to a69
bouwew Mar 28, 2025
b3fe6f5
Collect last_hourly_reset timestamps
bouwew Mar 30, 2025
10693d4
Line up interval reset with device hourly pulsecounter reset
bouwew Mar 30, 2025
2070561
Adapt hourly reset time, add hourly_reset_time test-assert
bouwew Mar 30, 2025
c3da099
Improve hourly_reset_time property
bouwew Mar 30, 2025
ab83196
Add debug logging
bouwew Mar 30, 2025
607470a
Fix walrus
bouwew Mar 30, 2025
b5403ca
Test: line up 2nd test-time
bouwew Mar 30, 2025
21b162f
Bump to a71
bouwew Mar 30, 2025
18d8d81
Reset log_pulses after pulsecounter resets.
bouwew Mar 30, 2025
6b1ebd0
Revert changes in counter.py
bouwew Mar 30, 2025
057ca9d
Fixes
bouwew Mar 30, 2025
7cac114
Add/improve testing
bouwew Mar 30, 2025
9d468f9
Bump to a72
bouwew Mar 30, 2025
c937c4a
Init new selfs
bouwew Mar 30, 2025
f970d64
Add testcase for midnight rollover
bouwew Mar 31, 2025
d643f77
Remove double resetting of log_pulses
bouwew Mar 31, 2025
b377de1
More debug
bouwew Mar 31, 2025
3002c2c
Party revert removal
bouwew Mar 31, 2025
a7b528a
Add add_log debugging
bouwew Mar 31, 2025
c6b9dd5
Try test
bouwew Mar 31, 2025
208806f
Try update _last_log_consumption_timestamp
bouwew Mar 31, 2025
e832fc7
Try test 2
bouwew Mar 31, 2025
5cda89d
Try test 3
bouwew Apr 1, 2025
8fdf948
More debug
bouwew Apr 1, 2025
8213614
Try test 4
bouwew Apr 1, 2025
7d64bfe
Extend update_pulse-counter logging
bouwew Apr 1, 2025
00f9dfe
Clean up test-code
bouwew Apr 1, 2025
bc3ae98
Reorganize updfate_pulse_counter()
bouwew Apr 1, 2025
9c78ba4
Revert most
bouwew Apr 1, 2025
cb3ae5e
Combine loggers
bouwew Apr 1, 2025
2fd82f7
Clean up test-debugging
bouwew Apr 1, 2025
04247d1
Bump to a73
bouwew Apr 1, 2025
73974be
Pre-commit fixes
bouwew Apr 1, 2025
3b38975
Extend docstring of hourly_reset_time property
bouwew Apr 1, 2025
320b6da
Add comment on log_time_stamp changes
bouwew Apr 1, 2025
d724d34
Shorten log_time_stamp
bouwew Apr 1, 2025
75cf08d
Remove week-related from api
bouwew Apr 2, 2025
9c62ac8
Delay/sync the from_timestamps as well
bouwew Apr 2, 2025
d3ea29d
Bump to a74
bouwew Apr 2, 2025
5a39062
Revert from_timestamp additions, add properties instead
bouwew Apr 2, 2025
23897d5
Sync the daily reset time with the device pulsecounter(s) reset
bouwew Apr 2, 2025
a220308
Fix missing logic
bouwew Apr 2, 2025
b93b778
Fix missing hour-reset
bouwew Apr 2, 2025
56672f5
Bump to a75
bouwew Apr 2, 2025
e37c0cd
Consumption/production last_hourly resets are the same
bouwew Apr 2, 2025
4093be8
Adapt code in counter.py
bouwew Apr 2, 2025
c99400b
Fix missing line
bouwew Apr 2, 2025
9cfcd07
Don't use self, use availble input
bouwew Apr 3, 2025
49a06f1
Revert deletion, improve debug-logging
bouwew Apr 3, 2025
df42a5f
Bump to a76
bouwew Apr 3, 2025
dad3da3
Fix datetime attributes
bouwew Apr 3, 2025
6577149
Bump to a77
bouwew Apr 3, 2025
c10bf4b
Refactor update_rollover()
bouwew Apr 3, 2025
aaa1c73
_detect_rollover(): full coverage by using <=
bouwew Apr 3, 2025
77fb8d3
Test: add log after pulse counter reset timestamp
bouwew Apr 3, 2025
e513141
Improve comment
bouwew Apr 4, 2025
d3253a9
Add working-comments
bouwew Apr 4, 2025
c79a5ab
Remove double occurence
bouwew Apr 4, 2025
9d1acff
Remove last_hourly_reset
bouwew Apr 4, 2025
5b29903
Use the pulse_counter_reset event to update the daily last_reset
bouwew Apr 4, 2025
c7404d3
Improve comment
bouwew Apr 4, 2025
a25f73c
Remove working-comments
bouwew Apr 4, 2025
ee1d2fe
Bump to a78
bouwew Apr 4, 2025
ca83ca2
Use sorted logs to collect log_pulses
bouwew Apr 5, 2025
e81fc18
Update last_reset logic once more
bouwew Apr 5, 2025
3bad8cf
Bump to a79
bouwew Apr 5, 2025
fa8b9ff
Last_reset: handle state after pulse_counter reset returns back to False
bouwew Apr 5, 2025
00c384c
Bump to a80
bouwew Apr 5, 2025
679d021
Improve refactoring of _update_rollover()
bouwew Apr 4, 2025
9ca5773
_update_log_references(): don't sync to pulse-counter reset
bouwew Apr 6, 2025
688a8ad
Correct rollover assert
bouwew Apr 6, 2025
1958ed1
Bump to a81
bouwew Apr 6, 2025
35d51e4
Add missing line
bouwew Apr 6, 2025
53348ba
counter-update: add debug-logging
bouwew Apr 7, 2025
458a378
Bump to a82
bouwew Apr 7, 2025
f96de0d
Improve counter update()
bouwew Apr 7, 2025
5c8db1b
Bump to a83
bouwew Apr 7, 2025
6e9a5df
Add missing @property
bouwew Apr 7, 2025
d702ab2
Bump to a84
bouwew Apr 7, 2025
cf84c6d
Remove hourly-reset related, not used
bouwew Apr 7, 2025
88b008b
Remove related test-assert
bouwew Apr 7, 2025
d1ed252
Revert debug-logging related changes
bouwew Apr 7, 2025
47abbfe
Add extra guarding for setting _midnight_reset_passed to True
bouwew Apr 8, 2025
be03a87
Bump to a85
bouwew Apr 8, 2025
179c972
Clean up
bouwew Apr 8, 2025
ae8266e
Move setting _midnight_reset_passed
bouwew Apr 9, 2025
b50ba2b
Bump to a86
bouwew Apr 9, 2025
6127526
Improve midnight reset delaying code further
bouwew Apr 10, 2025
ca546ca
Bump to a87
bouwew Apr 10, 2025
f5a0a33
Test last_reset.hour before setting hour to 0
bouwew Apr 11, 2025
9b21241
Bump to a88
bouwew Apr 11, 2025
2aa7206
Remove debug-logging for testing
bouwew Apr 12, 2025
7836e01
Bump to a89
bouwew Apr 12, 2025
932ae6b
Merge pull request #218 from plugwise/neg-energy-4
bouwew Apr 16, 2025
1d31a50
Publish on Pypi for async branch too
bouwew Apr 16, 2025
efa9d7a
Set to v0.40.0b0
bouwew Apr 16, 2025
6b522b9
Fix typo
bouwew Apr 17, 2025
cc67457
Bump to v0.40.0b1
bouwew Apr 16, 2025
4caffd4
Bump CACHE_VERSION
bouwew Apr 17, 2025
790a6a8
Merge pull request #223 from plugwise/pypi-release
bouwew Apr 17, 2025
d183871
Set a fixed test-time for test_pulse_collection_consumption()
bouwew Apr 6, 2025
a509263
Try
bouwew Apr 6, 2025
9500a5e
Try 2
bouwew Apr 6, 2025
6ef59de
Try 3
bouwew Apr 6, 2025
b68e899
Fix timestamp for added log
bouwew Apr 6, 2025
07c2a4d
Change frozen time
bouwew Apr 6, 2025
8674b0c
Fix wrong asserts
bouwew Apr 6, 2025
40448fa
Correct timestamps for collected_pulses()
bouwew Apr 10, 2025
dc416df
Lower frozen time
bouwew Apr 6, 2025
1de2215
Add asserts, correct from_timestamps
bouwew Apr 6, 2025
38005a7
Fix last-day assert
bouwew Apr 6, 2025
465b05f
Add/update collected_pulses asserts for pulse-counter reset
bouwew Apr 6, 2025
05dbc40
Test-updates
bouwew Apr 6, 2025
b46eb35
Drop log when exact 24hrs old
bouwew Apr 6, 2025
f6faf3a
Remove no longer available hourly_reset assert
bouwew Apr 10, 2025
8948969
Adapt test-assert
bouwew Apr 10, 2025
1aa5bb2
Enable extra tests
bouwew Apr 10, 2025
a146fbb
Fix assert
bouwew Apr 10, 2025
1851b49
Uncomment disabled test-asserts
bouwew Apr 11, 2025
02e4b13
Cleanup
bouwew Apr 18, 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
3 changes: 2 additions & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ name: Latest release

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

# Only run on merges
on:
pull_request:
types: closed
branches:
- main
- async

jobs:
publishing:
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: 8
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