Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius committed Dec 9, 2024
1 parent d284958 commit 8956434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/heatzy/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
BLOOM,
CFT_TEMP_H,
CFT_TEMP_L,
CUR_TEMP_L,
CONF_ATTRS,
CONF_CFT_TEMP,
CONF_CUR_MODE,
Expand All @@ -48,6 +47,7 @@
CONF_ON_OFF,
CONF_PRODUCT_KEY,
CONF_TIMER_SWITCH,
CUR_TEMP_L,
DEFAULT_BOOST,
DEFAULT_VACATION,
ECO_TEMP_H,
Expand Down Expand Up @@ -516,7 +516,7 @@ class Glowv1Thermostat(HeatzyPiloteV2Thermostat):
@property
def current_temperature(self) -> float:
"""Return current temperature."""
return self._attrs.get(self.entity_description.current_temperature) / 10
return self._attrs.get(self.entity_description.current_temperature, 0) / 10

@property
def target_temperature_high(self) -> float:
Expand Down

0 comments on commit 8956434

Please sign in to comment.