Skip to content

Commit 4282b45

Browse files
Merge pull request #11 from danielsmith-eu/bugfix/time_minutes_to_minutes
Update sensor.py
2 parents 5a7414d + d4cae9c commit 4282b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/themeparks/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, coordinator, idx):
5252
super().__init__(coordinator)
5353
self.idx = idx
5454
self._attr_name = coordinator.data[idx][NAME]
55-
self._attr_native_unit_of_measurement = UnitOfTime.TIME_MINUTES
55+
self._attr_native_unit_of_measurement = UnitOfTime.MINUTES
5656
self._attr_device_class = SensorDeviceClass.DURATION
5757
self._attr_state_class = SensorStateClass.MEASUREMENT
5858
self._attr_native_value = self.coordinator.data[self.idx][TIME]

0 commit comments

Comments
 (0)