@@ -859,16 +859,6 @@ class TeslemetrySensorEntityDescription(SensorEntityDescription):
859859 entity_registry_enabled_default = False ,
860860 suggested_display_precision = 3 ,
861861 ),
862- TeslemetrySensorEntityDescription (
863- key = "lifetime_energy_gained_regen" ,
864- streaming_key = Signal .LIFETIME_ENERGY_GAINED_REGEN ,
865- entity_registry_enabled_default = False ,
866- native_unit_of_measurement = UnitOfEnergy .KILO_WATT_HOUR ,
867- suggested_unit_of_measurement = UnitOfEnergy .KILO_WATT_HOUR ,
868- device_class = SensorDeviceClass .ENERGY ,
869- suggested_display_precision = 2 ,
870- entity_category = EntityCategory .DIAGNOSTIC ,
871- ),
872862 TeslemetrySensorEntityDescription (
873863 key = "lifetime_energy_used" ,
874864 streaming_key = Signal .LIFETIME_ENERGY_USED ,
@@ -879,16 +869,6 @@ class TeslemetrySensorEntityDescription(SensorEntityDescription):
879869 suggested_display_precision = 2 ,
880870 entity_category = EntityCategory .DIAGNOSTIC ,
881871 ),
882- TeslemetrySensorEntityDescription (
883- key = "lifetime_energy_used_drive" ,
884- streaming_key = Signal .LIFETIME_ENERGY_USED_DRIVE ,
885- entity_registry_enabled_default = False ,
886- native_unit_of_measurement = UnitOfEnergy .KILO_WATT_HOUR ,
887- suggested_unit_of_measurement = UnitOfEnergy .KILO_WATT_HOUR ,
888- device_class = SensorDeviceClass .ENERGY ,
889- suggested_display_precision = 2 ,
890- entity_category = EntityCategory .DIAGNOSTIC ,
891- ),
892872 TeslemetrySensorEntityDescription (
893873 key = "longitudinal_acceleration" ,
894874 streaming_key = Signal .LONGITUDINAL_ACCELERATION ,
@@ -1637,7 +1617,7 @@ def _async_update_attrs(self) -> None:
16371617 "model" : vehicle .device ["model" ],
16381618 }
16391619 return
1640-
1620+
16411621 self ._attr_native_value = value
16421622 model = MODELS .get (value [3 ]) if isinstance (value , str ) and len (value ) > 3 else None
16431623 self ._attr_extra_state_attributes = {
0 commit comments