Skip to content

Commit

Permalink
chore: rename EVSEServiceStatus to ServiceStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagosalamandri committed Oct 17, 2022
1 parent 3898096 commit da2ee49
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions iso15118/secc/controller/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class EVDataContext:
soc: Optional[int] = None # 0-100


class EVSEServiceStatus(str, Enum):
class ServiceStatus(str, Enum):
READY = "ready"
STARTING = "starting"
STOPPING = "stopping"
Expand Down Expand Up @@ -101,7 +101,7 @@ def reset_ev_data_context(self):
# ============================================================================

@abstractmethod
async def set_status(self, status: EVSEServiceStatus) -> None:
async def set_status(self, status: ServiceStatus) -> None:
"""
Sets the new status for the EVSE Controller
"""
Expand Down
4 changes: 2 additions & 2 deletions iso15118/secc/controller/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
EVChargeParamsLimits,
EVDataContext,
EVSEControllerInterface,
EVSEServiceStatus,
ServiceStatus,
)
from iso15118.shared.exceptions import EncryptionError, PrivateKeyReadError
from iso15118.shared.exi_codec import EXI
Expand Down Expand Up @@ -196,7 +196,7 @@ def reset_ev_data_context(self):
# ============================================================================
# | COMMON FUNCTIONS (FOR ALL ENERGY TRANSFER MODES) |
# ============================================================================
async def set_status(self, status: EVSEServiceStatus) -> None:
async def set_status(self, status: ServiceStatus) -> None:
logger.debug(f"New Status: {status}")

async def get_evse_id(self, protocol: Protocol) -> str:
Expand Down
4 changes: 2 additions & 2 deletions iso15118/secc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging

from iso15118.secc import SECCHandler
from iso15118.secc.controller.interface import EVSEServiceStatus
from iso15118.secc.controller.interface import ServiceStatus
from iso15118.secc.controller.simulator import SimEVSEController
from iso15118.shared.exificient_exi_codec import ExificientEXICodec

Expand All @@ -15,7 +15,7 @@ async def main():
the SECC (Supply Equipment Communication Controller)
"""
sim_evse_controller = await SimEVSEController.create()
await sim_evse_controller.set_status(EVSEServiceStatus.STARTING)
await sim_evse_controller.set_status(ServiceStatus.STARTING)
await SECCHandler(
exi_codec=ExificientEXICodec(), evse_controller=sim_evse_controller
).start()
Expand Down

0 comments on commit da2ee49

Please sign in to comment.