1
0
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:
Oscar
2025-11-26 14:29:28 +01:00
committed by GitHub
parent 4900d25ac8
commit 0e3bab3ce4
2 changed files with 4 additions and 1 deletions

View File

@@ -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(

View File

@@ -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)