Fixed wrong 'already_configured' message when editing entities

This commit is contained in:
rospogrigio
2022-05-27 12:54:20 +02:00
parent d8b64eb819
commit f9b88c79a0

View File

@@ -674,8 +674,6 @@ class LocalTuyaOptionsFlowHandler(config_entries.OptionsFlow):
user_input = {NO_ADDITIONAL_ENTITIES: True} user_input = {NO_ADDITIONAL_ENTITIES: True}
return await self.async_step_pick_entity_type(user_input) return await self.async_step_pick_entity_type(user_input)
errors["base"] = "entity_already_configured"
if self.editing_device: if self.editing_device:
schema = platform_schema( schema = platform_schema(
self.current_entity[CONF_PLATFORM], self.dps_strings, allow_id=False self.current_entity[CONF_PLATFORM], self.dps_strings, allow_id=False