Skip to content

Commit

Permalink
Merge pull request #11 from danielsmith-eu/bugfix/time_minutes_to_min…
Browse files Browse the repository at this point in the history
…utes

Update sensor.py
  • Loading branch information
danielsmith-eu authored Mar 15, 2024
2 parents 5a7414d + d4cae9c commit 4282b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/themeparks/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, coordinator, idx):
super().__init__(coordinator)
self.idx = idx
self._attr_name = coordinator.data[idx][NAME]
self._attr_native_unit_of_measurement = UnitOfTime.TIME_MINUTES
self._attr_native_unit_of_measurement = UnitOfTime.MINUTES
self._attr_device_class = SensorDeviceClass.DURATION
self._attr_state_class = SensorStateClass.MEASUREMENT
self._attr_native_value = self.coordinator.data[self.idx][TIME]
Expand Down

0 comments on commit 4282b45

Please sign in to comment.