Skip to content

Commit 1b2d9b9

Browse files
committed
Fix device locked sensor
1 parent 861d817 commit 1b2d9b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/growcube/binary_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, coordinator: GrowcubeDataCoordinator):
4444
self._attr_unique_id = f"{coordinator.data.device_id}_device_locked"
4545
self.entity_id = f"{Platform.SENSOR}.{self._attr_unique_id}"
4646
self._attr_name = f"Device locked"
47-
self._attr_device_class = BinarySensorDeviceClass.LOCK
47+
self._attr_device_class = BinarySensorDeviceClass.PROBLEM
4848
self._attr_entity_category = EntityCategory.DIAGNOSTIC
4949
self._attr_native_value = coordinator.data.device_locked
5050

0 commit comments

Comments
 (0)