Skip to content

Commit 899bcf4

Browse files
committed
Clean up
1 parent b52cd96 commit 899bcf4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lyric/__init__.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ def users(self):
243243

244244
@property
245245
def devices(self):
246-
# if 'deviceID' in self._devices[0]:
247246
devices = []
248247
for device in self._devices:
249248
if device['deviceType'] == 'Thermostat':
@@ -259,21 +258,19 @@ def devices(self):
259258

260259
@property
261260
def thermostats(self):
262-
# if 'deviceID' in self._devices[0]:
263261
thermostats = []
264262
for device in self._devices:
265263
if device['deviceType'] == 'Thermostat':
266-
devices.append(Thermostat(device['deviceID'], self._locationId,
264+
thermostats.append(Thermostat(device['deviceID'], self._locationId,
267265
self._lyric_api, self._local_time))
268266
return thermostats
269267

270268
@property
271269
def waterLeakDetectors(self):
272-
# if 'deviceID' in self._devices[0]:
273270
waterLeakDetectors = []
274271
for device in self._devices:
275272
if device['deviceType'] == 'Water Leak Detector':
276-
devices.append(WaterLeakDetector(device['deviceID'], self._locationId,
273+
waterLeakDetectors.append(WaterLeakDetector(device['deviceID'], self._locationId,
277274
self._lyric_api, self._local_time))
278275
return waterLeakDetectors
279276

@@ -1062,4 +1059,4 @@ def _devices_type(self, deviceType, locationId):
10621059
@property
10631060
def locations(self):
10641061
return [Location(location['locationID'], self, self._local_time)
1065-
for location in self._locations]
1062+
for location in self._locations]

0 commit comments

Comments
 (0)