We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f406bc3 commit 28a279fCopy full SHA for 28a279f
1 file changed
e3dc/_e3dc.py
@@ -318,9 +318,7 @@ def poll(self, keepAlive: bool = False):
318
"production": {"solar": solar, "add": -add, "grid": grid},
319
"selfConsumption": sc,
320
"stateOfCharge": soc,
321
- "time": datetime.datetime.utcfromtimestamp(ts).replace(
322
- tzinfo=datetime.timezone.utc
323
- ),
+ "time": datetime.datetime.fromtimestamp(ts, tz=datetime.timezone.utc),
324
}
325
326
self.lastRequest = outObj
0 commit comments