StephanJoubert / home_assistant_solarman

Home Assistant component for Solarman collectors used with a variety of inverters.
Apache License 2.0
507 stars 191 forks source link

Optimized ParameterParser #610

Open StackOverflowEx opened 3 days ago

StackOverflowEx commented 3 days ago

This pull request improves the performance of the ParameterParser. The Inverter class now only creates one ParameterParser upon initialization. The ParameterParser organizes the items in a dictionary for faster lookups upon calling the parse method.