Skip to content

Commit

Permalink
Add icon translations for Pegelonline (#108554)
Browse files Browse the repository at this point in the history
add icon translations
  • Loading branch information
mib1185 authored Jan 21, 2024
1 parent b5bb97c commit 4d46f5e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
27 changes: 27 additions & 0 deletions homeassistant/components/pegel_online/icons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"entity": {
"sensor": {
"air_temperature": {
"default": "mdi:thermometer-lines"
},
"clearance_height": {
"default": "mdi:bridge"
},
"oxygen_level": {
"default": "mdi:water-opacity"
},
"water_speed": {
"default": "mdi:waves-arrow-right"
},
"water_flow": {
"default": "mdi:waves"
},
"water_level": {
"default": "mdi:waves-arrow-up"
},
"water_temperature": {
"default": "mdi:thermometer-water"
}
}
}
}
7 changes: 0 additions & 7 deletions homeassistant/components/pegel_online/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class PegelOnlineSensorEntityDescription(
measurement_key="air_temperature",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
icon="mdi:thermometer-lines",
entity_registry_enabled_default=False,
),
PegelOnlineSensorEntityDescription(
Expand All @@ -51,14 +50,12 @@ class PegelOnlineSensorEntityDescription(
measurement_key="clearance_height",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.DISTANCE,
icon="mdi:bridge",
),
PegelOnlineSensorEntityDescription(
key="oxygen_level",
translation_key="oxygen_level",
measurement_key="oxygen_level",
state_class=SensorStateClass.MEASUREMENT,
icon="mdi:water-opacity",
entity_registry_enabled_default=False,
),
PegelOnlineSensorEntityDescription(
Expand All @@ -74,31 +71,27 @@ class PegelOnlineSensorEntityDescription(
measurement_key="water_speed",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.SPEED,
icon="mdi:waves-arrow-right",
entity_registry_enabled_default=False,
),
PegelOnlineSensorEntityDescription(
key="water_flow",
translation_key="water_flow",
measurement_key="water_flow",
state_class=SensorStateClass.MEASUREMENT,
icon="mdi:waves",
entity_registry_enabled_default=False,
),
PegelOnlineSensorEntityDescription(
key="water_level",
translation_key="water_level",
measurement_key="water_level",
state_class=SensorStateClass.MEASUREMENT,
icon="mdi:waves-arrow-up",
),
PegelOnlineSensorEntityDescription(
key="water_temperature",
translation_key="water_temperature",
measurement_key="water_temperature",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.TEMPERATURE,
icon="mdi:thermometer-water",
entity_registry_enabled_default=False,
),
)
Expand Down

0 comments on commit 4d46f5e

Please sign in to comment.