fix battery migration
This commit is contained in:
parent
08d7012bd9
commit
dcc445a42e
|
@ -59,6 +59,8 @@ def clone_device(device):
|
|||
if device.binding:
|
||||
return
|
||||
|
||||
if device.type == "Battery":
|
||||
device.size
|
||||
dict_device = copy.copy(device.__dict__)
|
||||
dict_device.pop('_sa_instance_state')
|
||||
dict_device.pop('id', None)
|
||||
|
|
Reference in New Issue