Skip to content

Commit

Permalink
Add support for json lists for sensors and inverters
Browse files Browse the repository at this point in the history
  • Loading branch information
maslyankov committed Oct 11, 2024
1 parent 1101694 commit 5e980f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ha_addon_sunsynk_multi/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ class Options:
mqtt_password: str = os.getenv("MQTT_PASSWORD", "")
number_entity_mode: str = os.getenv("NUMBER_ENTITY_MODE", "auto")
prog_time_interval: int = int(os.getenv("PROG_TIME_INTERVAL", "15"))
inverters: list[InverterOptions] = []
inverters: list[InverterOptions] = loads(os.getenv("INVERTERS", "[]"))
sensor_definitions: str = os.getenv("SENSOR_DEFINITIONS", "single-phase")
sensors: list[str] = []
sensors_first_inverter: list[str] = []
sensors: list[str] = loads(os.getenv("SENSORS", "[]"))
sensors_first_inverter: list[str] = loads(os.getenv("SENSORS_FIRST_INVERTER", "[]"))
read_allow_gap: int = int(os.getenv("READ_ALLOW_GAP", "10"))
read_sensors_batch_size: int = int(os.getenv("READ_SENSORS_BATCH_SIZE", "60"))
schedules: list[Schedule] = []
schedules: list[Schedule] = loads(os.getenv("SCHEDULES", "[]"))
timeout: int = int(os.getenv("TIMEOUT", "10"))
debug: int = int(os.getenv("DEBUG", "0"))
driver: str = os.getenv("DRIVER", "umodbus")
Expand Down

0 comments on commit 5e980f6

Please sign in to comment.