From 7b1d169edbe8567ec9344787545f6d15c289a119 Mon Sep 17 00:00:00 2001 From: Jonny Bergdahl Date: Mon, 4 Nov 2024 23:26:23 +0100 Subject: [PATCH] Fix water_plant Version 1.0.3 --- custom_components/growcube/manifest.json | 2 +- custom_components/growcube/services.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/growcube/manifest.json b/custom_components/growcube/manifest.json index 3c33e6b..c50c988 100644 --- a/custom_components/growcube/manifest.json +++ b/custom_components/growcube/manifest.json @@ -10,5 +10,5 @@ "requirements": [ "growcube-client==1.2.3" ], - "version": "1.0.2" + "version": "1.0.3" } diff --git a/custom_components/growcube/services.py b/custom_components/growcube/services.py index f43c20b..9d54ef0 100644 --- a/custom_components/growcube/services.py +++ b/custom_components/growcube/services.py @@ -78,7 +78,7 @@ async def async_call_delete_watering_service(service_call: ServiceCall) -> None: async def _async_handle_water_plant(hass: HomeAssistant, data: Mapping[str, Any]) -> None: - coordinator = _get_coordinator(hass, data) + coordinator, device = _get_coordinator(hass, data) if coordinator is None: _LOGGER.warning(f"Unable to find coordinator for {data[ATTR_DEVICE_ID]}")