Skip to content

Commit

Permalink
Merge pull request #141 from robbinjanssen/rja/fix-138
Browse files Browse the repository at this point in the history
Fixes: unexpected keyword argument 'hvac_mode'
  • Loading branch information
robbinjanssen committed Feb 15, 2024
2 parents d334ecd + b9499c0 commit a9b8b59
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions custom_components/ojmicroline_thermostat/climate.py
Expand Up @@ -281,14 +281,17 @@ async def _async_delayed_request_refresh(self) -> None:
await asyncio.sleep(2)
await self.coordinator.async_request_refresh()

async def async_set_hvac_mode(self, _hvac_mode: str) -> bool:
async def async_set_hvac_mode(
self,
hvac_mode: str, # pylint: disable=unused-argument # noqa: ARG002
) -> bool:
"""Set new hvac mode.
Always set to schedule as we cannot control the heating.
Args:
----
_hvac_mode: Currently not used.
hvac_mode: Currently not used.
"""
await self.async_set_preset_mode(PRESET_HOME)
Expand Down

0 comments on commit a9b8b59

Please sign in to comment.