Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

add teams presence #105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add teams presence #105

wants to merge 2 commits into from

Conversation

Squixx
Copy link

@Squixx Squixx commented Feb 10, 2021

I'd Like to add teams presence to home assistant using the account setup already provided by o365,

However i'm actually unsure on how to locally test this. I know this works upstream in the O365 lib, but i'm not familiar enough with home assistant to figure out what i'm doing wrong.

Anyone who can help?

@sourcery-ai
Copy link

sourcery-ai bot commented Feb 10, 2021

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 4.82%.

Quality metrics Before After Change
Complexity 15.07 🙂 13.19 🙂 -1.88 👍
Method Length 59.92 ⭐ 47.35 ⭐ -12.57 👍
Working memory 9.23 🙂 8.60 🙂 -0.63 👍
Quality 52.82% 🙂 57.64% 🙂 4.82% 👍
Other metrics Before After Change
Lines 169 189 20
Changed files Quality Before Quality After Quality Change
custom_components/o365/sensor.py 52.82% 🙂 57.64% 🙂 4.82% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
custom_components/o365/sensor.py O365QuerySensor.__init__ 28 😞 309 ⛔ 11 😞 28.17% 😞 Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
custom_components/o365/sensor.py O365InboxSensor.__init__ 12 🙂 141 😞 10 😞 52.39% 🙂 Try splitting into smaller methods. Extract out complex expressions
custom_components/o365/sensor.py setup_platform 4 ⭐ 96 🙂 10 😞 65.58% 🙂 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!

Let us know what you think of it by mentioning @sourcery-ai in a comment.

@Squixx
Copy link
Author

Squixx commented Feb 11, 2021

So the weird thing is, i can get this to sort of work (not the teams presence) on my 'produciton' machine. But I cant get even the email sensor to work on the dev container (I keep running into configuration errors)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant