-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Migrated to use new intelligent APIs (2.5 hours dev time)
BREAKING CHANGE: vehicle_battery_size_in_kwh and charge_point_power_in_kw are no longer both provided together. It's either one or the other depending on which part is integrated into OE intelligent. This is due to not being available in the new APIs.
- Loading branch information
1 parent
ec116e0
commit 80eb8bf
Showing
15 changed files
with
244 additions
and
117 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
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
31 changes: 10 additions & 21 deletions
31
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 |
---|---|---|
@@ -1,29 +1,18 @@ | ||
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, | ||
id: str, | ||
provider: str, | ||
vehicleMake:str, | ||
vehicleModel: str, | ||
make:str, | ||
model: str, | ||
vehicleBatterySizeInKwh: float | None, | ||
chargePointMake: str, | ||
chargePointModel: str, | ||
chargePointPowerInKw: float | None | ||
chargePointPowerInKw: float | None, | ||
is_charger: bool | ||
): | ||
self.krakenflexDeviceId = krakenflexDeviceId | ||
self.id = id | ||
self.provider = provider | ||
self.vehicleMake = vehicleMake | ||
self.vehicleModel = vehicleModel | ||
self.make = make | ||
self.model = model | ||
self.vehicleBatterySizeInKwh = vehicleBatterySizeInKwh | ||
self.chargePointMake = chargePointMake | ||
self.chargePointModel = chargePointModel | ||
self.chargePointPowerInKw = chargePointPowerInKw | ||
self.chargePointPowerInKw = chargePointPowerInKw | ||
self.is_charger = is_charger |
Oops, something went wrong.