diff --git a/homeassistant/components/permobil/icons.json b/homeassistant/components/permobil/icons.json new file mode 100644 index 00000000000..ba3c612b756 --- /dev/null +++ b/homeassistant/components/permobil/icons.json @@ -0,0 +1,36 @@ +{ + "entity": { + "sensor": { + "state_of_health": { + "default": "mdi:battery-heart-variant" + }, + "charge_time_left": { + "default": "mdi:battery-clock" + }, + "distance_left": { + "default": "mdi:map-marker-distance" + }, + "max_watt_hours": { + "default": "mdi:lightning-bolt" + }, + "watt_hours_left": { + "default": "mdi:lightning-bolt" + }, + "max_distance_left": { + "default": "mdi:map-marker-distance" + }, + "usage_distance": { + "default": "mdi:map-marker-distance" + }, + "usage_adjustments": { + "default": "mdi:seat-recline-extra" + }, + "record_adjustments": { + "default": "mdi:seat-recline-extra" + }, + "record_distance": { + "default": "mdi:map-marker-distance" + } + } + } +} diff --git a/homeassistant/components/permobil/sensor.py b/homeassistant/components/permobil/sensor.py index 8814a3de83d..6b783f3a385 100644 --- a/homeassistant/components/permobil/sensor.py +++ b/homeassistant/components/permobil/sensor.py @@ -72,7 +72,6 @@ SENSOR_DESCRIPTIONS: tuple[PermobilSensorEntityDescription, ...] = ( available_fn=lambda data: BATTERY_STATE_OF_HEALTH[0] in data.battery, key="state_of_health", translation_key="state_of_health", - icon="mdi:battery-heart-variant", native_unit_of_measurement=PERCENTAGE, state_class=SensorStateClass.MEASUREMENT, ), @@ -82,7 +81,6 @@ SENSOR_DESCRIPTIONS: tuple[PermobilSensorEntityDescription, ...] = ( available_fn=lambda data: BATTERY_CHARGE_TIME_LEFT[0] in data.battery, key="charge_time_left", translation_key="charge_time_left", - icon="mdi:battery-clock", native_unit_of_measurement=UnitOfTime.HOURS, device_class=SensorDeviceClass.DURATION, ), @@ -92,7 +90,6 @@ SENSOR_DESCRIPTIONS: tuple[PermobilSensorEntityDescription, ...] = ( available_fn=lambda data: BATTERY_DISTANCE_LEFT[0] in data.battery, key="distance_left", translation_key="distance_left", - icon="mdi:map-marker-distance", native_unit_of_measurement=UnitOfLength.KILOMETERS, device_class=SensorDeviceClass.DISTANCE, ), @@ -112,7 +109,6 @@ SENSOR_DESCRIPTIONS: tuple[PermobilSensorEntityDescription, ...] = ( available_fn=lambda data: BATTERY_MAX_AMPERE_HOURS[0] in data.battery, key="max_watt_hours", translation_key="max_watt_hours", - icon="mdi:lightning-bolt", native_unit_of_measurement=UnitOfEnergy.WATT_HOUR, device_class=SensorDeviceClass.ENERGY_STORAGE, state_class=SensorStateClass.MEASUREMENT, @@ -124,7 +120,6 @@ SENSOR_DESCRIPTIONS: tuple[PermobilSensorEntityDescription, ...] = ( available_fn=lambda data: BATTERY_AMPERE_HOURS_LEFT[0] in data.battery, key="watt_hours_left", translation_key="watt_hours_left", - icon="mdi:lightning-bolt", native_unit_of_measurement=UnitOfEnergy.WATT_HOUR, device_class=SensorDeviceClass.ENERGY_STORAGE, state_class=SensorStateClass.MEASUREMENT, @@ -135,7 +130,6 @@ SENSOR_DESCRIPTIONS: tuple[PermobilSensorEntityDescription, ...] = ( available_fn=lambda data: BATTERY_MAX_DISTANCE_LEFT[0] in data.battery, key="max_distance_left", translation_key="max_distance_left", - icon="mdi:map-marker-distance", native_unit_of_measurement=UnitOfLength.KILOMETERS, device_class=SensorDeviceClass.DISTANCE, ), @@ -145,7 +139,6 @@ SENSOR_DESCRIPTIONS: tuple[PermobilSensorEntityDescription, ...] = ( available_fn=lambda data: USAGE_DISTANCE[0] in data.daily_usage, key="usage_distance", translation_key="usage_distance", - icon="mdi:map-marker-distance", native_unit_of_measurement=UnitOfLength.KILOMETERS, device_class=SensorDeviceClass.DISTANCE, state_class=SensorStateClass.TOTAL_INCREASING, @@ -156,7 +149,6 @@ SENSOR_DESCRIPTIONS: tuple[PermobilSensorEntityDescription, ...] = ( available_fn=lambda data: USAGE_ADJUSTMENTS[0] in data.daily_usage, key="usage_adjustments", translation_key="usage_adjustments", - icon="mdi:seat-recline-extra", native_unit_of_measurement="adjustments", state_class=SensorStateClass.TOTAL_INCREASING, ), @@ -166,7 +158,6 @@ SENSOR_DESCRIPTIONS: tuple[PermobilSensorEntityDescription, ...] = ( available_fn=lambda data: RECORDS_SEATING[0] in data.records, key="record_adjustments", translation_key="record_adjustments", - icon="mdi:seat-recline-extra", native_unit_of_measurement="adjustments", state_class=SensorStateClass.TOTAL_INCREASING, ), @@ -176,7 +167,6 @@ SENSOR_DESCRIPTIONS: tuple[PermobilSensorEntityDescription, ...] = ( available_fn=lambda data: RECORDS_DISTANCE[0] in data.records, key="record_distance", translation_key="record_distance", - icon="mdi:map-marker-distance", device_class=SensorDeviceClass.DISTANCE, state_class=SensorStateClass.TOTAL_INCREASING, ),