mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Remove unreachable code in the ESPHome fan platform (#96458)
This commit is contained in:
parent
81ce6e4797
commit
9775832d53
@ -119,9 +119,6 @@ class EsphomeFan(EsphomeEntity[FanInfo, FanState], FanEntity):
|
||||
@esphome_state_property
|
||||
def percentage(self) -> int | None:
|
||||
"""Return the current speed percentage."""
|
||||
if not self._static_info.supports_speed:
|
||||
return None
|
||||
|
||||
if not self._supports_speed_levels:
|
||||
return ordered_list_item_to_percentage(
|
||||
ORDERED_NAMED_FAN_SPEEDS, self._state.speed # type: ignore[misc]
|
||||
|
Loading…
x
Reference in New Issue
Block a user