ui: fix errors when updating devices before widgets are filled

This commit is contained in:
Vinícius 2022-01-17 18:50:50 -03:00 committed by Peter F. Patel-Schneider
parent cc3ec6d987
commit 9737a85c5a
1 changed files with 2 additions and 2 deletions

View File

@ -1741,11 +1741,11 @@ class SetUI(ActionUI):
self.key_field.append(str(int(k)), str(k))
def update_devices(self):
if not self.component:
return
with self.ignore_changes():
device_value = self.collect_value()[0]
self.devices = _all_devices()
if not self.component:
return
self.device_field.remove_all()
self.device_field.append('', _('Originating device'))
acceptable_values = []