We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b6762f commit ed6a0e4Copy full SHA for ed6a0e4
1 file changed
custom_components/periodic_min_max/sensor.py
@@ -222,13 +222,7 @@ async def async_added_to_hass(self) -> None:
222
self._attr_device_class = (
223
SensorDeviceClass(entry.device_class) if entry.device_class else None
224
)
225
- self._attr_icon = (
226
- entry.icon
227
- if entry.icon
228
- else entry.original_icon
229
- if entry.original_icon
230
- else ICON
231
- )
+ self._attr_icon = entry.icon or entry.original_icon or ICON
232
233
state = await self.async_get_last_state()
234
if state is not None and state.state not in [
0 commit comments