From e872809f07dd95d1626021ca44fd1f9e7073ac42 Mon Sep 17 00:00:00 2001 From: Jonny Bergdahl Date: Fri, 31 May 2024 10:19:45 +0200 Subject: [PATCH] Fix sensor spelling --- custom_components/growcube/binary_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/growcube/binary_sensor.py b/custom_components/growcube/binary_sensor.py index 69d589f..ac35de2 100644 --- a/custom_components/growcube/binary_sensor.py +++ b/custom_components/growcube/binary_sensor.py @@ -145,7 +145,7 @@ def __init__(self, coordinator: GrowcubeDataCoordinator, channel: int) -> None: self._channel = channel self._attr_unique_id = f"{coordinator.data.device_id}_pump_" + self._channel_id[channel] + "_locked" self.entity_id = f"{Platform.SENSOR}.{self._attr_unique_id}" - self._attr_name = f"Pump " + self._channel_name[channel] + "lock state" + self._attr_name = f"Pump " + self._channel_name[channel] + " lock state" self._attr_device_class = BinarySensorDeviceClass.PROBLEM self._attr_entity_category = EntityCategory.DIAGNOSTIC self._attr_native_value = coordinator.data.pump_lock_state[self._channel]