Skip to content

Commit ed6a0e4

Browse files
Lint
1 parent 1b6762f commit ed6a0e4

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

custom_components/periodic_min_max/sensor.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,7 @@ async def async_added_to_hass(self) -> None:
222222
self._attr_device_class = (
223223
SensorDeviceClass(entry.device_class) if entry.device_class else None
224224
)
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-
)
225+
self._attr_icon = entry.icon or entry.original_icon or ICON
232226

233227
state = await self.async_get_last_state()
234228
if state is not None and state.state not in [

0 commit comments

Comments
 (0)