1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-20 02:48:57 +00:00

Starline: remove device_class for fuel level (#154964)

This commit is contained in:
ildar170975
2025-10-23 10:40:41 +03:00
committed by GitHub
parent f9484acbfa
commit 8dfa0f2f65

View File

@@ -61,7 +61,7 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
SensorEntityDescription( SensorEntityDescription(
key="fuel", key="fuel",
translation_key="fuel", translation_key="fuel",
device_class=SensorDeviceClass.VOLUME, # No device_class: fuel can be reported as percentage or volume depending on vehicle
state_class=SensorStateClass.TOTAL, state_class=SensorStateClass.TOTAL,
), ),
SensorEntityDescription( SensorEntityDescription(