Skip to content

Commit

Permalink
fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
hudcap committed Jan 13, 2022
1 parent 77ef8b3 commit a06a774
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pyecobee/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -2638,10 +2638,11 @@ def set_hold(
:raises EcobeeRequestsException: If an exception is raised by
the underlying requests module
:raises TypeError: If cool_hold_temp is not a real,
heat_hold_temp is not a real, hold_climate_ref is not a string,
start_date_time is not a datetime, end_date_time is not a
datetime, hold_type is not a member of HoldType, hold_hours is
not an integer, or selection is not an instance of Selection
heat_hold_temp is not a real, fan_mode is not a member of
FanMode, hold_climate_ref is not a string, start_date_time is
not a datetime, end_date_time is not a datetime, hold_type is
not a member of HoldType, hold_hours is not an integer, or
selection is not an instance of Selection
:raises ValueError: If cool_hold_temp is lower than -10F,
cool_hold_temp is higher than 120F, heat_hold_temp is lower than
45F, heat_hold_temp is higher than 120F, cool_hold_temp,
Expand Down Expand Up @@ -2685,8 +2686,7 @@ def set_hold(
EcobeeService.MAXIMUM_HEATING_TEMPERATURE,
)
)
if fan_mode is not None:
if not isinstance(fan_mode, FanMode):
if fan_mode is not None and not isinstance(fan_mode, FanMode):
raise TypeError("fan_mode must be an instance of {0}".format(FanMode))
if hold_climate_ref is not None and not isinstance(
hold_climate_ref, six.string_types
Expand Down

0 comments on commit a06a774

Please sign in to comment.