From 6d881eb7532f1df0ae143466dc0b3053f48bdc15 Mon Sep 17 00:00:00 2001 From: Gazoodle Date: Fri, 7 Feb 2025 09:58:08 +0000 Subject: [PATCH] Implement async_set_hvac_mode to support scenes --- README.md | 3 +++ custom_components/gecko/climate.py | 3 +++ custom_components/gecko/manifest.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7370920..7a83f27 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,9 @@ ## Version History +v0.1.18 + - Implement climate action async_set_hvac_mode so that the integration can be used in scenes + v0.1.17 - Add supoort for lock mode if it exists - Add support for standby mode diff --git a/custom_components/gecko/climate.py b/custom_components/gecko/climate.py index 1f1b937..0332dd6 100644 --- a/custom_components/gecko/climate.py +++ b/custom_components/gecko/climate.py @@ -117,3 +117,6 @@ async def async_set_temperature(self, **kwargs: Any) -> None: await self._automation_entity.async_set_target_temperature( kwargs["temperature"] ) + + async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None: + """Fake function to set HVAC mode.""" diff --git a/custom_components/gecko/manifest.json b/custom_components/gecko/manifest.json index 1a52562..3cc8948 100644 --- a/custom_components/gecko/manifest.json +++ b/custom_components/gecko/manifest.json @@ -12,5 +12,5 @@ "requirements": [ "geckolib==1.0.1" ], - "version": "0.1.17" + "version": "0.1.18" } \ No newline at end of file