Skip to content

Commit

Permalink
Fix fibaro climate unit (#83659)
Browse files Browse the repository at this point in the history
  • Loading branch information
rappenze authored Dec 10, 2022
1 parent c467b89 commit 119f2a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/fibaro/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def __init__(self, fibaro_device):
):
self._target_temp_device = FibaroDevice(device)
self._attr_supported_features |= ClimateEntityFeature.TARGET_TEMPERATURE
tempunit = device.properties.unit
if "unit" in device.properties:
tempunit = device.properties.unit

if any(action for action in OP_MODE_ACTIONS if action in device.actions):
self._op_mode_device = FibaroDevice(device)
Expand Down

0 comments on commit 119f2a9

Please sign in to comment.