Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cgtobi
Copy link
Collaborator

@cgtobi cgtobi commented Nov 9, 2021

Introduce new climate module to eventually replace the thermostat module. This introduces dataclasses for homes, rooms, schedules and modules. The idea is to evolve this into a generic model and roll it out to all other modules and provide a more coherent API.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Nov 14, 2021

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.23%.

Quality metrics Before After Change
Complexity 0.58 ⭐ 0.62 ⭐ 0.04 👎
Method Length 49.33 ⭐ 50.20 ⭐ 0.87 👎
Working memory 5.67 ⭐ 5.73 ⭐ 0.06 👎
Quality 84.28% 84.05% -0.23% 👎
Other metrics Before After Change
Lines 905 952 47
Changed files Quality Before Quality After Quality Change
src/pyatmo/init.py 87.81% ⭐ 87.02% ⭐ -0.79% 👎
src/pyatmo/helpers.py 85.83% ⭐ 83.26% ⭐ -2.57% 👎
tests/conftest.py 85.61% ⭐ 85.53% ⭐ -0.08% 👎
tests/test_async.py 82.68% ⭐ 82.68% ⭐ 0.00%

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
tests/test_async.py test_async_home_status_set_thermmode 2 ⭐ 145 😞 9 🙂 63.52% 🙂 Try splitting into smaller methods
tests/test_async.py test_async_home_status_set_room_thermpoint 0 ⭐ 105 🙂 10 😞 68.33% 🙂 Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!

@cgtobi cgtobi requested a review from jabesq November 17, 2021 15:24
@jabesq jabesq merged commit 6890f7a into jabesq-org:development Nov 19, 2021
jabesq added a commit that referenced this pull request Nov 19, 2021
Pyatmo 6.2.0

Added
=====

- Add support for python3.20
- Introduce climate module #156

Changed
=======

- Use assignment expressions
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