Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 237ca71

Browse files
committed
fixed charger access mapping
1 parent 851b97d commit 237ca71

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33

44
from dotenv import load_dotenv
5-
from src.goechargerv2.goecharger import GoeChargerApi
5+
from goechargerv2.goecharger import GoeChargerApi
66

77
load_dotenv()
88

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ keywords = ["goecharger", "kfw", "api", "cloud"]
1818
name = "goechargerv2"
1919
readme = "README.md"
2020
requires-python = ">=3.7"
21-
version = "0.1.9"
21+
version = "0.1.10"
2222

2323
[project.optional-dependencies]
2424
dev = ["black", "pylint", "python-dotenv"]

src/goechargerv2/goecharger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def map_api_status_response(self, status: dict) -> dict:
2828
)
2929
charger_absolute_max_current = int(status.get("ama", 0))
3030
charger_err = GoeChargerApi.GO_ERR.get(str(status.get("err"))) or "unknown"
31-
charger_access = GoeChargerApi.GO_ACCESS.get(status.get("acs")) or "unknown"
31+
charger_access = GoeChargerApi.GO_ACCESS.get(status.get("acs", False))
3232
charging_allowed = (
3333
GoeChargerApi.GO_CHARGING_ALLOWED.get(status.get("alw")) or "unknown"
3434
)

0 commit comments

Comments
 (0)