diff --git a/custom_components/solarman/const.py b/custom_components/solarman/const.py index 0828ad7..e1ff1a8 100644 --- a/custom_components/solarman/const.py +++ b/custom_components/solarman/const.py @@ -7,8 +7,8 @@ DEFAULT_INVERTER_MB_SLAVEID = 1 DEFAULT_LOOKUP_FILE = 'deye_hybrid.yaml' +LOOKUP_FILES = (sorted([f for f in os.listdir(os.path.dirname(__file__) + '/inverter_definitions') if f.endswith('.yaml')])) -LOOKUP_FILES = (os.listdir(os.path.dirname(__file__) + '/inverter_definitions')) MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=15)