RogerSelwyn / Home_Assistant_SkyQ_MediaPlayer

Home Assistant SkyQ Media player component
MIT License
103 stars 17 forks source link

Sourcery refactored master branch #128

Closed sourcery-ai[bot] closed 1 year ago

sourcery-ai[bot] commented 1 year ago

Branch master refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch origin sourcery/master
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

sourcery-ai[bot] commented 1 year ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 1.56 ⭐ 1.43 ⭐ -0.13 👍
Method Length 41.42 ⭐ 41.12 ⭐ -0.30 👍
Working memory 6.08 ⭐ 6.15 ⭐ 0.07 👎
Quality 82.15% 82.06% -0.09% 👎
Other metrics Before After Change
Lines 238 239 1
Changed files Quality Before Quality After Quality Change
custom_components/skyq/sensor.py 82.15% ⭐ 82.06% ⭐ -0.09% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
custom_components/skyq/sensor.py SkyQSchedule.async_update 4 ⭐ 158 😞 10 😞 58.12% 🙂 Try splitting into smaller methods. Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

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!