Fix Modbus review comments#33755
Fix Modbus review comments#33755springstan merged 4 commits intohome-assistant:devfrom janiversen:modbus2
Conversation
|
Hey there @adamchengtkc, mind taking a look at this pull request as its been labeled with a integration ( |
|
@MartinHjelmare would you please review the code, and ensure it solves your review comments, thanks in advance. |
MartinHjelmare
left a comment
There was a problem hiding this comment.
Looks good! I still think we can drop the global:
#33447 (comment)
Is there something I'm missing about that?
|
No you are not missing something, I was. I did the change, but then ran into some a pre-commit problem, and got side tracked by helping Frenck. It is quite interesting that there are a scope difference between variables in a class and a function, I was not aware of that. |
MartinHjelmare
left a comment
There was a problem hiding this comment.
Nice! Just a small convention comment.
|
Changed, and I also rebased on latest dev, so it is hopefully ready to get merged. |
|
this: can hardly by something I introduced, trying to force push again. |
|
Yeah, we've tried to fix this this morning. Please rebase on latest dev branch and see if it works. |
Remove global variable and unused constant
Move simulated_read into run_tests, which allows the holding variable to be method local, instead of global.
|
Done, rebase with dev as of this minute. And force push, lets how if it works |
|
same problem! can I help to pinpoint it? |
Codecov Report
@@ Coverage Diff @@
## dev #33755 +/- ##
=======================================
Coverage 94.75% 94.75%
=======================================
Files 858 858
Lines 60797 60797
=======================================
Hits 57609 57609
Misses 3188 3188 Continue to review full report at Codecov.
|
|
All green....yeah !!!!! Now just waiting for somebody to push the merge bottom :-) |
* update common test for modbus integration * remove log messages from modbus setup function. * Make global method local * Change parameter name to snake_case
Breaking change
Proposed change
Updates for review comments from @MartinHjelmare, which was done after the code was merged.
Type of change
Example entry for
configuration.yaml:Remark depend a modbus tcp server.
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale: