Skip to content

Commit

Permalink
remove methods only applicable to external API
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Jun 25, 2024
1 parent 5112a12 commit cb28dcd
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions chargeamps/base.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
"""Base class for ChargeAmps API"""

from abc import ABCMeta, abstractmethod
from datetime import datetime
from typing import Optional

from .models import (
ChargePoint,
ChargePointConnectorSettings,
ChargePointSettings,
ChargePointStatus,
ChargingSession,
StartAuth,
)


Expand All @@ -24,23 +20,6 @@ async def get_chargepoints(self) -> list[ChargePoint]:
"""Get all owned chargepoints"""
pass

@abstractmethod
async def get_all_chargingsessions(
self,
charge_point_id: str,
start_time: Optional[datetime] = None,
end_time: Optional[datetime] = None,
) -> list[ChargingSession]:
"""Get all charging sessions"""
pass

@abstractmethod
async def get_chargingsession(
self, charge_point_id: str, session: int
) -> ChargingSession:
"""Get charging session"""
pass

@abstractmethod
async def get_chargepoint_status(self, charge_point_id: str) -> ChargePointStatus:
"""Get charge point status"""
Expand Down Expand Up @@ -71,15 +50,3 @@ async def set_chargepoint_connector_settings(
) -> None:
"""Get all owned chargepoints"""
pass

@abstractmethod
async def remote_start(
self, charge_point_id: str, connector_id: int, start_auth: StartAuth
) -> None:
"""Remote start chargepoint"""
pass

@abstractmethod
async def remote_stop(self, charge_point_id: str, connector_id: int) -> None:
"""Remote stop chargepoint"""
pass

0 comments on commit cb28dcd

Please sign in to comment.