diff --git a/src/chargecloudapi/api.py b/src/chargecloudapi/api.py index a01d7c0..789c0b0 100644 --- a/src/chargecloudapi/api.py +++ b/src/chargecloudapi/api.py @@ -10,10 +10,10 @@ class Api: """Class to make authenticated requests.""" - def __init__(self, websession: ClientSession, base_url: str = DEFAULT_URL): + def __init__(self, websession: ClientSession, base_url: str | None = None): """Initialize the auth.""" self.websession = websession - self.base_url = URL(base_url) + self.base_url = URL(base_url or DEFAULT_URL) self.logger = logging.getLogger("chargecloudapi") async def location_by_evse_id(self, evse_id: str, **kwargs) -> list[Location]: diff --git a/src/chargecloudapi/models.py b/src/chargecloudapi/models.py index 691e012..04d859d 100644 --- a/src/chargecloudapi/models.py +++ b/src/chargecloudapi/models.py @@ -15,7 +15,7 @@ class Coordinates(BaseModel): class Connector(BaseModel): id: int status: Status - standard: Literal["IEC_62196_T2", "IEC_62196_T2_COMBO", "DOMESTIC_F"] + standard: Literal["IEC_62196_T2", "IEC_62196_T2_COMBO", "DOMESTIC_F", "CHADEMO", "TESLA"] format: Literal["CABLE", "SOCKET"] power_type: Literal["AC_1_PHASE", "AC_3_PHASE", "DC"] ampere: float diff --git a/src/main.py b/src/main.py index 5d3543a..08dd66f 100644 --- a/src/main.py +++ b/src/main.py @@ -19,6 +19,7 @@ async def main(): "DE*ERE*E0008*OMN15L", "DE*UFC*E210004", "DE*ION*E207101", + "DE*EDR*E11000150*2", ] for evse_id in evse_ids: