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 514a329 commit 00d2340Copy full SHA for 00d2340
homeassistant/components/usage_prediction/common_control.py
@@ -144,13 +144,7 @@ async def async_predict_common_control(
144
if not service_data:
145
continue
146
147
- entity_ids: str | list[str] | None
148
- if (target := service_data.get("target")) and (
149
- target_entity_ids := target.get("entity_id")
150
- ):
151
- entity_ids = target_entity_ids
152
- else:
153
- entity_ids = service_data.get("entity_id")
+ entity_ids: str | list[str] | None = service_data.get("entity_id")
154
155
# No entity IDs found, skip this event
156
if entity_ids is None:
0 commit comments