Skip to content

Commit

Permalink
🔧 fix for customizing (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Aug 25, 2022
1 parent c1e7009 commit 4d916cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/xiaomi_miot/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Config flow to configure Xiaomi Miot."""
import logging
import re
import copy
import requests
import voluptuous as vol

Expand Down Expand Up @@ -353,7 +354,7 @@ async def async_step_customizing(self, user_input=None):
via = self.context.get('customizing_via') or 'customizing_entity'
self.context['customizing_via'] = via
entry = await self.async_set_unique_id(f'{DOMAIN}-customizes')
entry_data = dict(entry.data) if entry else {}
entry_data = copy.deepcopy(dict(entry.data) if entry else {})
customizes = {}
errors = {}
schema = {}
Expand Down

0 comments on commit 4d916cd

Please sign in to comment.