Skip to content

Commit

Permalink
remove dot notation
Browse files Browse the repository at this point in the history
  • Loading branch information
drc38 authored Jun 9, 2024
1 parent 15ef13b commit a82fd92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/evnex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ async def async_update_data(is_retry: bool = False):
api_v3_response.data.attributes
)

for connector_brief in charge_point_detail.connectors:
for connector_brief in charge_point_detail["connectors"]:
data["connector_brief"][
(charge_point.id, connector_brief.connectorId)
(charge_point.id, connector_brief["connectorId"])
] = connector_brief

_LOGGER.debug(
Expand All @@ -197,7 +197,7 @@ async def async_update_data(is_retry: bool = False):
)

# Only get the charge point override if the charge point is online!
if charge_point_detail.networkStatus == "ONLINE":
if charge_point_detail["networkStatus"] == "ONLINE":
_LOGGER.debug(
f"Getting evnex charge point override for '{charge_point.name}'"
)
Expand Down

0 comments on commit a82fd92

Please sign in to comment.