Skip to content

Commit

Permalink
Merge pull request #173 from KevM/fix-product-energysite-name
Browse files Browse the repository at this point in the history
EnergySite: add siteName and fix type
  • Loading branch information
jonasman authored Aug 7, 2024
2 parents d310352 + eea3670 commit f7e7b53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/TeslaSwift/Model/EnergySite.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ open class EnergySite: Codable {
public var siteId: SiteId {
SiteId(id: energySiteID)
}
open var siteName: String?
open var assetSiteID: String?
open var components: Components?
open var goOffGridTestBannerEnabled: Bool?
open var stormModeEnabled: Bool?
open var powerwallOnboardingSettingsSet: String?
open var powerwallOnboardingSettingsSet: Bool?
open var powerwallTeslaElectricInterestedIn: String?
open var vppTourEnabled: Bool?

Expand All @@ -44,6 +45,7 @@ open class EnergySite: Codable {
open var breakerAlertEnabled: Bool

enum CodingKeys: String, CodingKey {
case siteName = "site_name"
case energySiteID = "energy_site_id"
case resourceType = "resource_type"
case warpSiteNumber = "warp_site_number"
Expand Down

0 comments on commit f7e7b53

Please sign in to comment.