From 9ef7b163a1e3b58fde5486efe86cf7d57e93d788 Mon Sep 17 00:00:00 2001 From: Sasha MOREL Date: Mon, 23 May 2016 08:41:07 +0200 Subject: [PATCH] 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 --- python3/homesfr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python3/homesfr.py b/python3/homesfr.py index 0f2a6b0..8567feb 100644 --- a/python3/homesfr.py +++ b/python3/homesfr.py @@ -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: '''