From 00c3053a38ddd783269e45a93b46af0dacc88b62 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Mar 2026 07:20:34 +0000 Subject: [PATCH 1/2] Initial plan From 49e2dd71bb71b1596dece0e36b64c8f8cd7d6fc1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Mar 2026 07:26:19 +0000 Subject: [PATCH 2/2] Fix API changes: make public_settings and last_update_time optional Co-authored-by: twistedfall <406037+twistedfall@users.noreply.github.com> Agent-Logs-Url: https://github.com/twistedfall/solaredge/sessions/f7c6e5ce-a3be-4578-9684-0514f6c56488 --- src/api/response/site.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/response/site.rs b/src/api/response/site.rs index 62f33ce..a344515 100644 --- a/src/api/response/site.rs +++ b/src/api/response/site.rs @@ -79,7 +79,7 @@ pub struct Details { pub alert_severity: Option, pub uris: Uris, /// includes if this site is public and its public name - pub public_settings: PublicSettings, + pub public_settings: Option, } #[derive(Debug, Deserialize)] @@ -270,8 +270,8 @@ pub struct PowerData { #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Overview { - #[serde(with = "DateTimeSerde")] - pub last_update_time: NaiveDateTime, + #[serde(with = "DateTimeSerdeOpt")] + pub last_update_time: Option, #[serde(rename = "lifeTimeData")] pub lifetime_data: LifetimeData, pub last_year_data: EnergyData,