fix battery migration

This commit is contained in:
Cayo Puigdefabregas 2022-08-03 17:28:59 +02:00
parent 08d7012bd9
commit dcc445a42e

View file

@ -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)