Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve/optimize/reorder - part 1 #455

Merged
merged 18 commits into from
Nov 22, 2023
Merged

Improve/optimize/reorder - part 1 #455

merged 18 commits into from
Nov 22, 2023

Conversation

bouwew
Copy link
Contributor

@bouwew bouwew commented Nov 22, 2023

Combine _update_domain_objects() and _full_update_device(), add new _add_or_update_notifications and _get_plugwise_notifications() functions.

Move two blocks of code to functions in helper.py.

Reorder some of the functions: main functions first, sub-functions below the main functions.

Various small code- and comment-improvements.

@bouwew bouwew changed the title Improve/optimize/reorder Improve/optimize/reorder - part 1 Nov 22, 2023
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (240ef9e) 100.00% compared to head (ba5cdcd) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #455   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines         2780      2781    +1     
=========================================
+ Hits          2780      2781    +1     

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

@bouwew bouwew marked this pull request as ready for review November 22, 2023 18:55
@bouwew bouwew requested a review from a team as a code owner November 22, 2023 18:55
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bouwew bouwew merged commit df14c4b into main Nov 22, 2023
@bouwew bouwew deleted the code-improve branch November 22, 2023 19:14
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.

2 participants