Browse Source

[fix] modbus serial_conn.open

Maxime Alves LIRMM@home 3 years ago
parent
commit
852318312c
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      pyheatpump/modbus.py

+ 2
- 1
pyheatpump/modbus.py View File

@@ -31,7 +31,8 @@ def connect():
31 31
             timeout=20)
32 32
 
33 33
     if serial_conn.open is False:
34
-        logger.debug('Opening serial port *%s*', config.get('heatpump', 'serial_port')
34
+        logger.debug('Opening serial port *%s*', 
35
+            config.get('heatpump', 'serial_port'))
35 36
         serial_conn.open()
36 37
 
37 38
     return serial_conn

Loading…
Cancel
Save