From 299b4c2c3aca2ddf588df12ca13fb057351097b2 Mon Sep 17 00:00:00 2001 From: blakadder Date: Sat, 9 Dec 2023 17:04:37 +0100 Subject: [PATCH 1/2] Update manifest.json it's GrowCube --- custom_components/growcube/manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/growcube/manifest.json b/custom_components/growcube/manifest.json index edaacce..fa5d74d 100644 --- a/custom_components/growcube/manifest.json +++ b/custom_components/growcube/manifest.json @@ -1,6 +1,6 @@ { "domain": "growcube", - "name": "Elecrow Growcube", + "name": "Elecrow GrowCube", "codeowners": ["@jonnybergdahl"], "config_flow": true, "config": { @@ -14,4 +14,4 @@ "growcube-client==1.0.11" ], "version": "0.9.0" - } \ No newline at end of file + } From dd8911e0662515088dca581cee18be20267b8c15 Mon Sep 17 00:00:00 2001 From: blakadder Date: Sat, 9 Dec 2023 17:17:12 +0100 Subject: [PATCH 2/2] fix name in other places --- README.md | 12 ++++++------ custom_components/growcube/__init__.py | 4 ++-- custom_components/growcube/coordinator.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0803da2..17d96d6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg?style=for-the-badge)](https://github.com/hacs/integration) -# Elecrow Growcube integration for Home Assistant -Home Assistant integration for the [Elecrow Growcube](https://www.elecrow.com/growcube-gardening-plants-smart-watering-kit-device.html), a plant watering device. +# Elecrow GrowCube integration for Home Assistant +Home Assistant integration for the [Elecrow GrowCube](https://www.elecrow.com/growcube-gardening-plants-smart-watering-kit-device.html), a plant watering device. ## Installation @@ -12,18 +12,18 @@ Install the integration using HACS: 3. Click on the three dots in the top right corner and select "Custom repositories". 4. Enter the URL (`https://github.com/jonnybergdahl/HomeAssistant_Growcube_Integration`) and select "Integration" as the category. 5. Click "Add". -6. Once the repository has been added, you should see the Elecrow Growcube integration listed in the HACS store. +6. Once the repository has been added, you should see the Elecrow GrowCube integration listed in the HACS store. 7. Click on the integration and then click "Install". 8. Restart Home Assistant. -## Add a Growcube device +## Add a GrowCube device 1. Open the Home Assistant web interface. 2. Click on "Configuration" in the left-hand menu. 3. Click on "Integrations". 4. Click on the "+" button in the bottom right corner. -5. Search for "Growcube" and click on it. +5. Search for "GrowCube" and click on it. 6. Enter the IP address (or host name) of the device. -And that's it! Once you've added your Growcube device, you should be able to see its status and control it from the Home Assistant web interface. +And that's it! Once you've added your GrowCube device, you should be able to see its status and control it from the Home Assistant web interface. diff --git a/custom_components/growcube/__init__.py b/custom_components/growcube/__init__.py index b0799c9..9fb42cf 100644 --- a/custom_components/growcube/__init__.py +++ b/custom_components/growcube/__init__.py @@ -39,9 +39,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: dict): device_entry = registry.async_get_or_create( config_entry_id=entry.entry_id, identifiers={(DOMAIN, data_coordinator.model.device_id)}, - name=f"Growcube " + data_coordinator.device_id, + name=f"GrowCube " + data_coordinator.device_id, manufacturer="Elecrow", - model="Growcube", + model="GrowCube", sw_version=data_coordinator.model.version ) diff --git a/custom_components/growcube/coordinator.py b/custom_components/growcube/coordinator.py index 263e55b..71008ef 100644 --- a/custom_components/growcube/coordinator.py +++ b/custom_components/growcube/coordinator.py @@ -58,7 +58,7 @@ def set_device_id(self, device_id: str) -> None: "name": "GrowCube " + self.device_id, "identifiers": {(DOMAIN, self.model.device_id)}, "manufacturer": "Elecrow", - "model": "Growcube", + "model": "GrowCube", "sw_version": self.model.version }