From ea5accdf42d2207ac8f9d519ebeb69e017967447 Mon Sep 17 00:00:00 2001 From: Saiqi Jia Date: Wed, 12 Jul 2023 07:19:48 +0000 Subject: [PATCH] fix: fix incorrect icons on the defrosting entity --- custom_components/deye_dehumidifier/binary_sensor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/deye_dehumidifier/binary_sensor.py b/custom_components/deye_dehumidifier/binary_sensor.py index 15d23bd..5f78240 100644 --- a/custom_components/deye_dehumidifier/binary_sensor.py +++ b/custom_components/deye_dehumidifier/binary_sensor.py @@ -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" )