Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 30 additions & 3 deletions packages/modules/web_themes/colors/config.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,39 @@
from helpermodules.auto_str import auto_str

from modules.common.abstract_device import DeviceDescriptor


@auto_str
class ColorsWebThemeConfiguration:
def __init__(self) -> None:
pass
def __init__(self,
displayMode: str = 'dark',
smartHomeColors: str = 'normal',
liveGraphDuration: int = 3600,
showGrid: bool = False,
decimalPlaces: int = 1,
showRelativeArcs: bool = False,
showInverters: bool = True,
showVehicles: bool = False,
showCounters: bool = False,
showPrices: bool = False,
alternativeEnergy: bool = False,
showStandardVehicle: bool = False,
lowerPriceBound: float = 0.0,
upperPriceBound: float = 0.0
) -> None:
self.displayMode = displayMode
self.smartHomeColors = smartHomeColors
self.liveGraphDuration = liveGraphDuration
self.showGrid = showGrid
self.decimalPlaces = decimalPlaces
self.showRelativeArcs = showRelativeArcs
self.showInverters = showInverters
self.showVehicles = showVehicles
self.showCounters = showCounters
self.showPrices = showPrices
self.alternativeEnergy = alternativeEnergy
self.showStandardVehicle = showStandardVehicle
self.lowerPriceBound = lowerPriceBound
self.upperPriceBound = upperPriceBound


@auto_str
Expand Down
Loading