Skip to content

Commit

Permalink
Update GraphQL query for smartBatteries query (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
berendhaan authored May 31, 2024
1 parent 34e0e73 commit ea75bf8
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions python_frank_energie/frank_energie.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,27 +497,27 @@ async def smart_batteries(self) -> SmartBatteries:
Returns a list of all smart batteries.
Full query:
query {
smartBatteries {
brand
capacity
createdAt
externalReference
id
maxChargePower
maxDischargePower
provider
updatedAt
}
query SmartBatteries {
smartBatteries {
brand
capacity
createdAt
externalReference
id
maxChargePower
maxDischargePower
provider
updatedAt
}
}
"""
if self._auth is None:
raise AuthRequiredException

query = {
"query": """
query {
smartBatteries {
query SmartBatteries {
smartBatteries {
brand
capacity
createdAt
Expand All @@ -527,8 +527,9 @@ async def smart_batteries(self) -> SmartBatteries:
maxDischargePower
provider
updatedAt
}
""",
}
}
""",
"operationName": "SmartBatteries",
}

Expand Down

0 comments on commit ea75bf8

Please sign in to comment.