Skip to content

Commit 0e3bab3

Browse files
authored
Energyid bugfix (home-assistant#157343)
1 parent 4900d25 commit 0e3bab3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

homeassistant/components/energyid/config_flow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ async def async_step_user(
154154
title=self._flow_data["record_name"],
155155
data=self._flow_data,
156156
description="add_sensor_mapping_hint",
157+
description_placeholders={"integration_name": NAME},
157158
)
158159

159160
if auth_status == "needs_claim":
@@ -228,6 +229,7 @@ async def async_step_create_entry(
228229
title=self._flow_data["record_name"],
229230
data=self._flow_data,
230231
description="add_sensor_mapping_hint",
232+
description_placeholders={"integration_name": NAME},
231233
)
232234

233235
async def async_step_reauth(

homeassistant/components/energyid/energyid_sensor_mapping_flow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ async def async_step_user(
107107

108108
# Get current mappings by UUID
109109
current_mappings = {
110-
sub.data[CONF_HA_ENTITY_UUID]
110+
uuid
111111
for sub in config_entry.subentries.values()
112+
if (uuid := sub.data.get(CONF_HA_ENTITY_UUID)) is not None
112113
}
113114

114115
errors = _validate_mapping_input(ha_entity_id, current_mappings, ent_reg)

0 commit comments

Comments
 (0)