# HG changeset patch
# User Edouard Tisserant
# Date 1556010037 -7200
# Node ID c8cb60bf6c6a98c749ef1ce069cc45c81afcfdff
# Parent  a332f989f0b84b9b71a70a46f1d9ae8e2bf3ad3a
Fixed exception when using URI editor for PYRO addresses

diff -r a332f989f0b8 -r c8cb60bf6c6a 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 ''