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 30e9bb7 commit 031c571Copy full SHA for 031c571
custom_components/overwolfstatus/__init__.py
@@ -11,13 +11,14 @@
11
async def handle_webhook(
12
hass: HomeAssistant, webhook_id: str, request: web.Request
13
) -> web.Response:
14
- """Fire Overwolf data 1:1 as a Home Assistant event."""
+ """Fire Overwolf data 1:1 as a Home Assistant events."""
15
try:
16
data = await request.json()
17
except Exception:
18
return web.Response(text="Failed to parse payload", status=400)
19
20
- hass.bus.async_fire(EVENT_NAME, data)
+ for event in data:
21
+ hass.bus.async_fire(EVENT_NAME, event)
22
return web.Response(text="OK")
23
24
0 commit comments