-
Notifications
You must be signed in to change notification settings - Fork 9
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
Enhancement based on #425 #347
Conversation
Codecov Report
@@ Coverage Diff @@
## main #347 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 6 6
Lines 2640 2646 +6
=========================================
+ Hits 2640 2646 +6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
11e5be3
to
f530023
Compare
plugwise/__init__.py
Outdated
@@ -685,6 +685,11 @@ async def set_temperature(self, loc_id: str, items: dict[str, float]) -> None: | |||
if "setpoint_high" in items: | |||
tmp_setpoint_high = items["setpoint_high"] | |||
tmp_setpoint_low = items["setpoint_low"] | |||
else: |
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.
Suggest to rewrite as to raise
if not "setpoint_high" in items:
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.
Implemented.
tests/test_smile.py
Outdated
@@ -486,11 +486,11 @@ async def tinker_switch( | |||
return tinker_switch_passed | |||
|
|||
@pytest.mark.asyncio | |||
async def tinker_thermostat_temp(self, smile, loc_id, unhappy=False): | |||
async def tinker_thermostat_temp(self, smile, loc_id, special=True, unhappy=False): |
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.
Suggest to rename to cooling_special
or something likewise (as it is now non-descriptive how/why - or just add why special is there in the description line?
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.
Changed to block_cooling
and revert the default value to False
.
Final scope: no fix needed for plugwise/plugwise-beta#425, a user-error causes the error shown in the HA LOG.
Changes: