Skip to content

Commit

Permalink
remove device_class as it is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
pantherale0 committed Jun 16, 2024
1 parent 676552b commit 0921beb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions custom_components/fuel_prices/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@ def name(self) -> str:
"""Return the name of the entity."""
return self._fuel_station.name

@property
def device_class(self) -> SensorDeviceClass:
"""Return type of entity."""
if self.state_value == "name":
return None
return SensorDeviceClass.MONETARY

@property
def native_unit_of_measurement(self) -> str:
"""Return unit of measurement."""
Expand Down

0 comments on commit 0921beb

Please sign in to comment.