Fix import error in Integration by correcting use of Protocol typing#198
Fix import error in Integration by correcting use of Protocol typing#198
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## async #198 +/- ##
==========================================
+ Coverage 81.02% 81.08% +0.06%
==========================================
Files 36 36
Lines 7325 7323 -2
==========================================
+ Hits 5935 5938 +3
+ Misses 1390 1385 -5 ☔ View full report in Codecov by Sentry. |
ArnoutD
left a comment
There was a problem hiding this comment.
Reading https://realpython.com/python-protocol/ this is not what a Protocol was for and if Home Assistant would publish a Coordinator like Protocol this would implement it not define it
|
I don't like to remove the protcol class. In the end the protocol class is used and useful for external typing |
|



When using Protocol for class-typing, the class should NOT have an init.