Skip to content

Commit

Permalink
Preset broken when device has a custom preset - removing
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Mulliken committed Jul 4, 2021
1 parent 26a4c5b commit a0c6349
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
# replace with your username:
name = wyzeapy
version = 0.2.4
version = 0.2.5
author = Mulliken LLC
author_email = joshua@mulliken.net
description = Python client for private Wyze API
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sonar.organization=joshuamulliken

# This is the name and version displayed in the SonarCloud UI.
sonar.projectName=wyzeapy
sonar.projectVersion=0.2.4
sonar.projectVersion=0.2.5

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.
Expand Down
3 changes: 0 additions & 3 deletions src/wyzeapy/services/thermostat_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def __init__(self, dictionary: Dict[Any, Any]):
self.heat_set_point: int = 64
self.fan_mode: FanMode = FanMode.AUTO
self.hvac_mode: HVACMode = HVACMode.AUTO
self.preset: Preset = Preset.HOME
self.temperature: float = 71
self.available: bool = True
self.humidity: int = 50
Expand Down Expand Up @@ -82,8 +81,6 @@ async def update(self, thermostat: Thermostat) -> Thermostat:
thermostat.fan_mode = FanMode(value)
elif prop == ThermostatProps.MODE_SYS:
thermostat.hvac_mode = HVACMode(value)
elif prop == ThermostatProps.CONFIG_SCENARIO:
thermostat.preset = Preset(value)
elif prop == ThermostatProps.TEMPERATURE:
thermostat.temperature = float(value)
elif prop == ThermostatProps.IOT_STATE:
Expand Down

0 comments on commit a0c6349

Please sign in to comment.