Compare commits
2 Commits
1bbeab1ffe
...
cc1afaa218
| Author | SHA1 | Date |
|---|---|---|
|
|
cc1afaa218 | |
|
|
9255820a13 |
|
|
@ -198,7 +198,11 @@ class WeatherDataUpdateCoordinator(DataUpdateCoordinator):
|
|||
|
||||
# Incoming station payload is delivered as query params.
|
||||
# We copy it to a plain dict so it can be passed around safely.
|
||||
data: dict[str, Any] = dict(webdata.query)
|
||||
get_data = webdata.query
|
||||
post_data = await webdata.post()
|
||||
|
||||
# normalize incoming data to dict[str, Any]
|
||||
data: dict[str, Any] = {**dict(get_data), **dict(post_data)}
|
||||
|
||||
# Validate auth keys (different parameter names depending on endpoint mode).
|
||||
if not _wslink and ("ID" not in data or "PASSWORD" not in data):
|
||||
|
|
|
|||
Loading…
Reference in New Issue