Documentation changes
Python3: - Changed description of HomeSFR.get_sensors () - Changed description of HomeSFR.get_all_sensors () - Changed type of return of HomeSFR.get_all_sensors (), it was a list and the doc said it was a tuple
This commit is contained in:
parent
a340d1d228
commit
9ef7b163a1
|
@ -229,7 +229,7 @@ class HomeSFR ():
|
|||
|
||||
def get_sensor (self, id):
|
||||
'''
|
||||
Returns a dict of all variables for the sensor id or None if sensor is not found
|
||||
Returns a Sensor object for the sensor id or None if sensor is not found
|
||||
The available ids can be got from the list_sensors method
|
||||
'''
|
||||
def build_tree (element):
|
||||
|
@ -258,12 +258,12 @@ class HomeSFR ():
|
|||
|
||||
def get_all_sensors (self):
|
||||
'''
|
||||
Returns a tuple of dicts as described in the get_sensor method
|
||||
Returns a tuple of sensors as described in the get_sensor method
|
||||
'''
|
||||
r = []
|
||||
for i in self.list_sensors ():
|
||||
r.append (self.get_sensor (i))
|
||||
return (list (r))
|
||||
return (tuple (r))
|
||||
|
||||
class Sensor:
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue