forked from platypush/platypush
Don't delete external_id and data attributes unless they are set
This commit is contained in:
parent
b0671354ea
commit
0f60bc2131
1 changed files with 4 additions and 2 deletions
|
@ -1177,7 +1177,9 @@ class LightHuePlugin(RunnablePlugin, LightPlugin):
|
|||
for attr, value in (light.data or {}).items():
|
||||
setattr(light, attr, value)
|
||||
|
||||
if light.external_id is not None:
|
||||
del light.external_id
|
||||
if light.data is not None:
|
||||
del light.data
|
||||
|
||||
return lights
|
||||
|
|
Loading…
Reference in a new issue