Skip to content

Commit f1f5258

Browse files
committed
Update
1 parent ec5b677 commit f1f5258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lyric/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __repr__(self):
2525

2626
def _set(self, endpoint, data, **params):
2727
params['locationId'] = self._locationId
28-
self._lyric_api._post(endpoint, data, **params)
28+
print(self._lyric_api._post(endpoint, data, **params))
2929
self._lyric_api._bust_cache_all()
3030

3131
@property
@@ -695,7 +695,7 @@ def scheduleType(self):
695695

696696
@property
697697
def scheduleSubType(self):
698-
if 'scheduleType' in self._lyric_api._device(self._locationId, self._deviceId):
698+
if ('scheduleType' in self._lyric_api._device(self._locationId, self._deviceId)) & ('scheduleSubType' in self._lyric_api._device(self._locationId, self._deviceId)['scheduleType']):
699699
return self._lyric_api._device(self._locationId, self._deviceId)['scheduleType']['scheduleSubType']
700700

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

0 commit comments

Comments
 (0)