@@ -224,6 +224,7 @@ def _install_opener(self):
224224
225225 def send (self , buf ):
226226 '''Sends a buffer to server
227+
227228 :param buf: binary buffer'''
228229 if len (buf )> 0 :
229230 if not self .connected ():
@@ -275,6 +276,7 @@ def send(self, buf):
275276
276277 def send_cmd (self , msg ):
277278 '''Sends a command to server.
279+
278280 :param msg: string with FHEM command, e.g. 'set lamp on'
279281 '''
280282 if not self .connected ():
@@ -377,7 +379,7 @@ def send_recv_cmd(self, msg, timeout=0.1, blocking=True):
377379 def get_dev_state (self , dev , timeout = 0.1 ):
378380 '''
379381 Get all FHEM device properties as JSON object
380-
382+
381383 :param dev: FHEM device name
382384 :param timeout: timeout for reply
383385 '''
@@ -394,7 +396,7 @@ def get_dev_state(self, dev, timeout=0.1):
394396 def get_dev_reading (self , dev , reading , timeout = 0.1 ):
395397 '''
396398 Get a specific reading from a FHEM device
397-
399+
398400 :param dev: FHEM device
399401 :param reading: name of FHEM reading
400402 :param timeout: timeout for reply
@@ -420,7 +422,7 @@ def getDevReadings(self, dev, reading, timeout=0.1):
420422 def get_dev_readings (self , dev , readings , timeout = 0.1 ):
421423 '''
422424 Get a list of readings for one FHEM device
423-
425+
424426 :param dev: FHEM device
425427 :param readings: array of FHEM reading names
426428 :param timeout: timeout for reply
@@ -441,7 +443,7 @@ def get_dev_readings(self, dev, readings, timeout=0.1):
441443 def get_dev_reading_time (self , dev , reading , timeout = 0.1 ):
442444 '''
443445 Get the datetime of a specific reading from a FHEM device
444-
446+
445447 :param dev: FHEM device
446448 :param reading: name of FHEM reading
447449 :param timeout: timeout for reply
@@ -466,7 +468,7 @@ def get_dev_reading_time(self, dev, reading, timeout=0.1):
466468 def get_dev_readings_time (self , dev , readings , timeout = 0.1 ):
467469 '''
468470 Get a list of datetimes of readings for one FHEM device
469-
471+
470472 :param dev: FHEM device
471473 :param readings: array of FHEM reading names
472474 :param timeout: timeout for reply
@@ -498,7 +500,7 @@ def get_fhem_state(self, timeout=0.1):
498500 '''
499501 Get FHEM state of all devices, returns a large JSON object with
500502 every single FHEM device and reading state
501-
503+
502504 :param timeout: timeout for reply
503505 '''
504506 if not self .connected ():
@@ -556,7 +558,7 @@ def __init__(self, server, que, port=7072, protocol='telnet',
556558 def set_loglevel (self , level ):
557559 '''
558560 Set logging level,
559-
561+
560562 :param level: 0: critical, 1: errors, 2: info, 3: debug
561563 '''
562564 if level == 0 :
0 commit comments