Merge branch 'bugfix/4206-donalo-incoming'
This commit is contained in:
commit
5a0692216a
|
@ -778,6 +778,8 @@ class Device(Thing):
|
||||||
|
|
||||||
def change_owner(self, new_user):
|
def change_owner(self, new_user):
|
||||||
"""util for change the owner one device"""
|
"""util for change the owner one device"""
|
||||||
|
if not new_user:
|
||||||
|
return
|
||||||
self.owner = new_user
|
self.owner = new_user
|
||||||
if hasattr(self, 'components'):
|
if hasattr(self, 'components'):
|
||||||
for c in self.components:
|
for c in self.components:
|
||||||
|
|
Reference in New Issue