Fixed exception when using URI editor for PYRO addresses
authorEdouard Tisserant
Tue, 23 Apr 2019 11:00:37 +0200
changeset 2609 c8cb60bf6c6a
parent 2608 a332f989f0b8
child 2610 7e31997b2799
Fixed exception when using URI editor for PYRO addresses
connectors/PYRO_dialog.py
--- a/connectors/PYRO_dialog.py	Fri Apr 19 13:11:42 2019 +0200
+++ b/connectors/PYRO_dialog.py	Tue Apr 23 11:00:37 2019 +0200
@@ -40,8 +40,9 @@
             template = "{host}"
             if fields['port']:
                 template += ":{port}"
-            if fields['ID']:
-                template += "#{ID}"
+            if self.EnableIDSelector:
+                if fields['ID']:
+                    template += "#{ID}"
 
             return template.format(**fields)
         return ''