Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Fix ValueError (#18)
Browse files Browse the repository at this point in the history
Should fix #1
  • Loading branch information
Mausy5043 authored Dec 13, 2023
1 parent 132df1f commit ee55c76
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions daikinapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,11 @@ def target_temperature(self):
"""
target temperature
range of accepted values determined by mode: AUTO:18-31, HOT:10-31, COLD:18-33
:return: degrees centigrade
NOTE: when switched to fan-mode(7) the reported temperature target becomes '--'
when switched to drying-mode(2) the reported temperature target becomes 'M'
:return: string containing target temperature or '--' or 'M'
"""
return float(self._get_control()["stemp"])
return self._get_control()["stemp"]

@property
def target_humidity(self):
Expand Down Expand Up @@ -474,10 +476,10 @@ def inside_temperature(self):
@property
def inside_humidity(self):
"""
inside relative humidity
:return: percent
inside relative humidity or '-' if no humidity sensor is installed
:return: string containing relative humidity or '-'
"""
return float(self._get_sensor()["hhum"])
return self._get_sensor()["hhum"]

@property
def outside_temperature(self):
Expand Down

0 comments on commit ee55c76

Please sign in to comment.