Repository navigation
Typing 1 b #870
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
bouwew
wants to merge
29
commits into
main
Choose a base branch
from
typing_1_b
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
Typing 1 b #870
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
eca817e
Initial typed xml reading attempt (incomplete)
CoMPaTech 408682b
Further progress
CoMPaTech 6c6b3f2
Further progress - appliance typos
CoMPaTech 709e84c
Some progress
CoMPaTech 660acd8
More progress
CoMPaTech 826c387
Further cleaning
CoMPaTech baf3419
Gateway progress
CoMPaTech 9cd1b54
Fix after rebase
bouwew 91b6877
Contents -> content
bouwew e2ad185
Fix module_data
bouwew 9c011df
Fix another contents
bouwew 6d09ec6
Add xmltodict to requirements
bouwew 04698e7
Change index from 5 to 4
bouwew 7e393f5
Update _appl_heater_central_info()
bouwew 1d36e07
Update check_heater_central()
bouwew 7c84129
And use
bouwew 39ab2b3
Fixes
bouwew d7fa9f7
More _appl_heater_central_info() updating
bouwew 85bfdda
Fix contents
bouwew 613cbb3
Update _appl_thermostat_info()
bouwew aeee690
Update _get_appliances_with_offset_functionality()
bouwew 8e3c64c
get_groups()
bouwew a4a8822
Disable prints, add logger
bouwew 6728175
Disable initial Adam testcase
bouwew bbe0e9d
Add _create_gw_entities() call
bouwew a998ae0
Extend Appliance class
bouwew 51f9db4
Correct to appl.id
bouwew 17e6798
Various improvements
bouwew e9d0d42
fixup: typing_1_b Python code fixed using ruff
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
Update check_heater_central()
- Loading branch information
commit 1d36e07d9e0f16750eb6a46569281142133ec035
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
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.
Type annotation contradicts actual caller usage —
datais aDomainObjects, notPlugwiseData.plugwise/smilecomm.pyline 175 assignsself.data = root.domain_objects(aDomainObjects), andplugwise/common.pyline 93 callscheck_heater_central(self.data). The iterationfor appliance in data.applianceonly works becauseDomainObjects.applianceis the list —PlugwiseDataexposes.domain_objects, not.appliance, so the current annotation would fail at runtime if anyone actually passed aPlugwiseData.Fix the annotation (and the import) to match reality:
🩹 Proposed fix
📝 Committable suggestion
🧰 Tools
🪛 GitHub Check: SonarCloud Code Analysis
[failure] 79-79: Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=plugwise_python-plugwise&issues=AZ2lNrmWWySueEBauAgp&open=AZ2lNrmWWySueEBauAgp&pullRequest=870
🤖 Prompt for AI Agents