Skip to content

Commit bfa28e1

Browse files
bm1549amaisano
andauthored
Allow Celsius temperature setting (#34)
Co-authored-by: Adamo Maisano <atwixtor@gmail.com>
1 parent 994fb54 commit bfa28e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frigidaire/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ def set_humidity(cls, humidity: int) -> List[Component]:
203203

204204
@classmethod
205205
def set_temperature(cls, temperature: int) -> List[Component]:
206-
# This is a restriction set by Frigidaire
207-
if temperature < 60 or temperature > 90:
208-
raise FrigidaireException("Temperature must be between 60 and 90 degrees, inclusive")
209-
206+
# Note: Frigidaire sets limits for temperature which could cause this action to fail
207+
# Temperature ranges are below, inclusive of the endpoints
208+
# Fahrenheit: 60-90
209+
# Celsius: 16-32
210210
return [
211211
Component(Setting.TEMPERATURE_REPRESENTATION, Unit.FAHRENHEIT),
212212
Component(Setting.TARGET_TEMPERATURE_F, temperature),

0 commit comments

Comments
 (0)