Skip to content

Commit

Permalink
fix: fix incorrect icons on the defrosting entity
Browse files Browse the repository at this point in the history
  • Loading branch information
stackia committed Jul 12, 2023
1 parent f23d73a commit ea5accd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/deye_dehumidifier/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def is_on(self) -> bool:
def icon(self) -> str:
"""Return the icon based on the defrosting state."""
return (
"mdi:snowflake-check"
if self.device_state.fan_running
else "mdi:snowflake-melt"
"mdi:snowflake-melt"
if self.device_state.defrosting
else "mdi:snowflake-check"
)

0 comments on commit ea5accd

Please sign in to comment.