name nad public_name of TextualDevice can be set only once
@@ -260,6 +260,7 @@ class TextualDevice(AbstractDevice):
@name.setter
def name(self, value):
+ if not self._name:
self._name = value
@property
@@ -286,6 +287,7 @@ class TextualDevice(AbstractDevice):
:param value: String with device name.
:return: None
"""
+ if not self._public_name:
self._public_name = value
def _log(self, level, msg, extra=None):
