Skip to content

Commit 1b3412d

Browse files
committed
Update event.py
1 parent e05b21d commit 1b3412d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyhilo/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Event:
2727
def __init__(self, **event: dict[str, Any]):
2828
"""Initialize."""
2929
self._convert_phases(cast(dict[str, Any], event.get("phases")))
30-
params: dict[str, Any] = event.get("parameters", {})
30+
params: dict[str, Any] = event.get("parameters") or {}
3131
devices: list[dict[str, Any]] = params.get("devices", [])
3232
consumption: dict[str, Any] = event.get("consumption", {})
3333
allowed_wH: int = consumption.get("baselineWh", 0) or 0

0 commit comments

Comments
 (0)