mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Breakfix to handle null value in Teslemetry (#116206)
* Fixes * Remove unused test
This commit is contained in:
parent
63dffbcce1
commit
e909074dfb
@ -119,7 +119,7 @@ class TeslemetryEnergyDataCoordinator(TeslemetryDataCoordinator):
|
|||||||
|
|
||||||
# Convert Wall Connectors from array to dict
|
# Convert Wall Connectors from array to dict
|
||||||
data["response"]["wall_connectors"] = {
|
data["response"]["wall_connectors"] = {
|
||||||
wc["din"]: wc for wc in data["response"].get("wall_connectors", [])
|
wc["din"]: wc for wc in (data["response"].get("wall_connectors") or [])
|
||||||
}
|
}
|
||||||
|
|
||||||
return data["response"]
|
return data["response"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user