We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 823d20c commit bf64e11Copy full SHA for bf64e11
homeassistant/components/uptime_kuma/coordinator.py
@@ -104,7 +104,12 @@ def async_migrate_entities_unique_ids(
104
f"{registry_entry.config_entry_id}_"
105
).removesuffix(f"_{registry_entry.translation_key}")
106
if monitor := next(
107
- (m for m in metrics.values() if m.monitor_name == name), None
+ (
108
+ m
109
+ for m in metrics.values()
110
+ if m.monitor_name == name and m.monitor_id is not None
111
+ ),
112
+ None,
113
):
114
entity_registry.async_update_entity(
115
registry_entry.entity_id,
0 commit comments