mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Energyid bugfix (#157343)
This commit is contained in:
@@ -154,6 +154,7 @@ class EnergyIDConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
title=self._flow_data["record_name"],
|
||||
data=self._flow_data,
|
||||
description="add_sensor_mapping_hint",
|
||||
description_placeholders={"integration_name": NAME},
|
||||
)
|
||||
|
||||
if auth_status == "needs_claim":
|
||||
@@ -228,6 +229,7 @@ class EnergyIDConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
title=self._flow_data["record_name"],
|
||||
data=self._flow_data,
|
||||
description="add_sensor_mapping_hint",
|
||||
description_placeholders={"integration_name": NAME},
|
||||
)
|
||||
|
||||
async def async_step_reauth(
|
||||
|
||||
@@ -107,8 +107,9 @@ class EnergyIDSensorMappingFlowHandler(ConfigSubentryFlow):
|
||||
|
||||
# Get current mappings by UUID
|
||||
current_mappings = {
|
||||
sub.data[CONF_HA_ENTITY_UUID]
|
||||
uuid
|
||||
for sub in config_entry.subentries.values()
|
||||
if (uuid := sub.data.get(CONF_HA_ENTITY_UUID)) is not None
|
||||
}
|
||||
|
||||
errors = _validate_mapping_input(ha_entity_id, current_mappings, ent_reg)
|
||||
|
||||
Reference in New Issue
Block a user