-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Enhance APIClient to support legacy and modern API detection #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
stuartp44
wants to merge
19
commits into
main
Choose a base branch
from
stu/add_ability_to_communicate_with_com_and_print_board
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f9b5714
feat: Enhance APIClient to support legacy and modern API detection
stuartp44 b731fef
feat: Update NodeGeneralInfo and NetworkDucoInfo to handle empty dict…
stuartp44 4e082ac
feat: Improve APIClient generation detection and add security warning…
stuartp44 8a625a6
feat: Suppress InsecureRequestWarning for SSL verification in DucoUrl…
stuartp44 7d24369
feat: Update README to clarify support for Communication and Print Bo…
stuartp44 4087e23
feat: Add support for Communication and Print Board in APIClient and …
stuartp44 0572d81
feat: Enhance APIClient to transform modern node info and support fle…
stuartp44 584e9bc
feat: Update APIClient to fetch /info and /api endpoints without requ…
stuartp44 781e927
feat: Update APIClient to wrap sensor values in {"Val": value} format…
stuartp44 2e1a533
feat: Implement transformation of legacy API responses to modern form…
stuartp44 a1fb052
feat: Add normalization method for node data structure in APIClient
stuartp44 865b44b
feat: Enhance error handling in APIClient for action responses and no…
stuartp44 0af9621
feat: Add normalization methods for handling Communication/Print and …
stuartp44 3171d3b
feat: Add device identification caching for Communication and Print B…
stuartp44 f427936
feat: Enhance APIClient and NodeGeneralInfo to support software versi…
stuartp44 e4e2bc3
feat: Add get_board_info method to retrieve board-level information f…
stuartp44 22bb650
feat: Update APIClient to use /board_info endpoint and add support fo…
stuartp44 87cbd3f
feat: Update APIClient to handle /board_info response and cache uptim…
stuartp44 d0cda31
feat: Normalize calibration data structure for consistent access acro…
stuartp44 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function convert_to_dict uses both hasattr checks for 'dict' and 'model_dump', but could be simplified by checking the PYDANTIC_V2 flag that's already imported in the file. This would be more consistent with the rest of the codebase.