Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mekrapp patch 3 #1837

Closed
wants to merge 19 commits into from
Closed
1 change: 1 addition & 0 deletions packages/modules/vehicles/leaf/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Check warning on line 1 in packages/modules/vehicles/leaf/__init__.py

View workflow job for this annotation

GitHub Actions / build

blank line at end of file
17 changes: 17 additions & 0 deletions packages/modules/vehicles/leaf/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from typing import Optional


class LeafConfiguration:
def __init__(self, user_id: Optional[str] = None, password: Optional[str] = None):
self.user_id = user_id
self.password = password


class LeafSoc:
def __init__(self,
name: str = "Leaf",
type: str = "leaf",
configuration: LeafConfiguration = None) -> None:
self.name = name
self.type = type
self.configuration = configuration or LeafConfiguration()
Loading
Loading