Skip to content

Add typing#8

Draft
dontinelli wants to merge 1 commit intoualex73:masterfrom
dontinelli:dontinelli-typing
Draft

Add typing#8
dontinelli wants to merge 1 commit intoualex73:masterfrom
dontinelli:dontinelli-typing

Conversation

@dontinelli
Copy link
Copy Markdown
Contributor

Add typing to the library, in order to eventually enable strict typing in HA integration (https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/strict-typing). Together with the shared session (#7), this would enable the platin rating in the HA quality scale.

This is a first step, in a second step I would suggest to use data models to handle the received data instead of dicts. Furthermore, I noticed that the request-routines (may) return None. I think it would make things easier, if return value is always given, and if no correct value has been received, an exception is thrown. But again, this would be for a follow-up PR.

Let me know your thoughts, before I invest further time in this.

@dontinelli
Copy link
Copy Markdown
Contributor Author

@ualex73, any thoughts on this?

@ualex73
Copy link
Copy Markdown
Owner

ualex73 commented May 12, 2025 via email

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