Merge branch 'bugfix/4206-donalo-incoming'

This commit is contained in:
Cayo Puigdefabregas 2023-01-11 10:49:36 +01:00
commit 5a0692216a
1 changed files with 2 additions and 0 deletions

View File

@ -778,6 +778,8 @@ class Device(Thing):
def change_owner(self, new_user):
"""util for change the owner one device"""
if not new_user:
return
self.owner = new_user
if hasattr(self, 'components'):
for c in self.components: