Skip to content

Commit

Permalink
Fix device locked sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
bergdahl committed Jun 28, 2024
1 parent 861d817 commit 1b2d9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/growcube/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, coordinator: GrowcubeDataCoordinator):
self._attr_unique_id = f"{coordinator.data.device_id}_device_locked"
self.entity_id = f"{Platform.SENSOR}.{self._attr_unique_id}"
self._attr_name = f"Device locked"
self._attr_device_class = BinarySensorDeviceClass.LOCK
self._attr_device_class = BinarySensorDeviceClass.PROBLEM
self._attr_entity_category = EntityCategory.DIAGNOSTIC
self._attr_native_value = coordinator.data.device_locked

Expand Down

0 comments on commit 1b2d9b9

Please sign in to comment.