Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Aug 8, 2017
1 parent ec5b677 commit f1f5258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lyric/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __repr__(self):

def _set(self, endpoint, data, **params):
params['locationId'] = self._locationId
self._lyric_api._post(endpoint, data, **params)
print(self._lyric_api._post(endpoint, data, **params))
self._lyric_api._bust_cache_all()

@property
Expand Down Expand Up @@ -695,7 +695,7 @@ def scheduleType(self):

@property
def scheduleSubType(self):
if 'scheduleType' in self._lyric_api._device(self._locationId, self._deviceId):
if ('scheduleType' in self._lyric_api._device(self._locationId, self._deviceId)) & ('scheduleSubType' in self._lyric_api._device(self._locationId, self._deviceId)['scheduleType']):
return self._lyric_api._device(self._locationId, self._deviceId)['scheduleType']['scheduleSubType']

# #changeableValues Object List of values/settings that can be changed on the thermostat. Used in POST requests.
Expand Down

0 comments on commit f1f5258

Please sign in to comment.