Skip to content

Commit c553adb

Browse files
committed
More mypy fixes
1 parent bfc8da1 commit c553adb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/smile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ async def set_schedule_state(self, loc_id: str, name: str, state: str) -> None:
529529
)
530530
await self._request(uri, method="put", data=data)
531531

532-
async def _set_preset_legacy(self, preset: str) -> bool:
532+
async def _set_preset_legacy(self, preset: str) -> None:
533533
"""Set the given Preset on the relevant Thermostat - from DOMAIN_OBJECTS."""
534534
locator = f'rule/directives/when/then[@icon="{preset}"].../.../...'
535535
if (rule := self._domain_objects.find(locator)) is None:
@@ -543,7 +543,7 @@ async def _set_preset_legacy(self, preset: str) -> bool:
543543
async def set_preset(self, loc_id: str, preset: str) -> None:
544544
"""Set the given Preset on the relevant Thermostat - from LOCATIONS."""
545545
if self._smile_legacy:
546-
return await self._set_preset_legacy(preset)
546+
await self._set_preset_legacy(preset)
547547

548548
current_location = self._locations.find(f'location[@id="{loc_id}"]')
549549
location_name = current_location.find("name").text

0 commit comments

Comments
 (0)