Skip to content

Commit

Permalink
config flow: fix remove entities caused in last commits.
Browse files Browse the repository at this point in the history
* fix modes name in select
  • Loading branch information
xZetsubou committed Mar 5, 2024
1 parent 7a70e05 commit c676db6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion custom_components/localtuya/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ async def async_step_confirm(
@callback
def _update_entry(self, new_data, target_obj="", new_title=""):
"""Update entry data and save etnry,"""
_data = deepcopy(self.config_entry.data)
_data = deepcopy(dict(self.config_entry.data))
if target_obj:
_data[target_obj].update(new_data)
else:
Expand Down
8 changes: 4 additions & 4 deletions custom_components/localtuya/core/ha_entities/selects.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,16 +697,16 @@ def localtuya_selector(options):
{
"standby": "StandBy",
"random": "Random",
"smart": "SMART",
"wall_follow": "Follow Wall",
"mop": "MOP",
"smart": "Smart",
"wallfollow": "Follow Wall",
"mop": "Mop",
"spiral": "Spiral",
"left_spiral": "Spiral Left",
"right_spiral": "Spiral Right",
"right_bow": "Bow Right",
"left_bow": "Bow Left",
"partial_bow": "Bow Partial",
"chargego": "Go to Charge",
"chargego": "Charge",
}
),
),
Expand Down

0 comments on commit c676db6

Please sign in to comment.