-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Accounted when intelligent device can come back with null data f…
…rom OE
- Loading branch information
1 parent
e8786df
commit 53db610
Showing
12 changed files
with
146 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
custom_components/octopus_energy/api_client/intelligent_device.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
class IntelligentDevice: | ||
krakenflexDeviceId: str | ||
provider: str | ||
vehicleMake:str | ||
vehicleModel: str | ||
vehicleBatterySizeInKwh: float | None | ||
chargePointMake: str | ||
chargePointModel: str | ||
chargePointPowerInKw: float | None | ||
|
||
def __init__( | ||
self, | ||
krakenflexDeviceId: str, | ||
provider: str, | ||
vehicleMake:str, | ||
vehicleModel: str, | ||
vehicleBatterySizeInKwh: float | None, | ||
chargePointMake: str, | ||
chargePointModel: str, | ||
chargePointPowerInKw: float | None | ||
): | ||
self.krakenflexDeviceId = krakenflexDeviceId | ||
self.provider = provider | ||
self.vehicleMake = vehicleMake | ||
self.vehicleModel = vehicleModel | ||
self.vehicleBatterySizeInKwh = vehicleBatterySizeInKwh | ||
self.chargePointMake = chargePointMake | ||
self.chargePointModel = chargePointModel | ||
self.chargePointPowerInKw = chargePointPowerInKw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.