Skip to content

Conversation

@dirixmjm
Copy link
Contributor

  • Push circle clock synchronisation into circle.py
  • Change available/unavailable to info message making it easier to trace
  • Add workaround to circle _last_log_address out of sync
  • In logging self.mac => str(self.mac) otherwise sometimes we got a Python error
  • Simplify synchronisation of PowerUpdate and EnergyCounters by changing calling structure _update_energy_today_now+
  • Simplify history collection and network occupation on PlugWise startup by calculating missing addresses and calling off one address per PowerUpdate loop
  • Calculate historal addresses based on know combination of address+timestamp+slot.
  • Only call off PowerUpdate if NodePing was successful.
  • temporary patchwork to keep sequence_id synced*
  • Bump beta version
  • Needs some more testing, but seems stable for now.
  • The patchwork is not a final solution, but in favour of continuing work on the asnyc version, this will have to do for now.

add workaround to circle _last_log_address out of sync
In logging self.mac => str(self.mac) otherwise sometimes we got a Python error
Simplify synchronisation of PowerUpdate and EnergyCounters by changing calling structure _update_energy_today_now
Simplify history collection and network occupation on PlugWise startup by calculating missing addresses and calling off one address per PowerUpdate loop
Calculate historal addresses based on know combination of address+timestamp+slot.
Only call off PowerUpdate if NodePing was successful.
Bump beta version
@dirixmjm dirixmjm requested a review from a team as a code owner January 13, 2024 11:06
@codecov
Copy link

codecov bot commented Jan 13, 2024

Codecov Report

Attention: 73 lines in your changes are missing coverage. Please review.

Comparison is base (68a0039) 34.80% compared to head (f8ba0ce) 35.25%.

Files Patch % Lines
plugwise_usb/nodes/circle.py 2.98% 65 Missing ⚠️
plugwise_usb/messages/requests.py 25.00% 3 Missing ⚠️
plugwise_usb/__init__.py 0.00% 2 Missing ⚠️
plugwise_usb/nodes/__init__.py 0.00% 2 Missing ⚠️
plugwise_usb/controller.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #136      +/-   ##
==========================================
+ Coverage   34.80%   35.25%   +0.44%     
==========================================
  Files          21       21              
  Lines        2428     2400      -28     
==========================================
+ Hits          845      846       +1     
+ Misses       1583     1554      -29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

4 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@bouwew bouwew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's try this 👍

@bouwew bouwew merged commit 4963f43 into main Jan 13, 2024
@bouwew bouwew deleted the energyloop branch January 13, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants