I wanted to overload the MI_ENTITIES and PORT_ENTITIES by setting environment variables.
Expecting the environment variables to replace the default.
But it seems that the argument parser appends the environment variables to the default instead.
So from setting the environment variable:
MI_ENTITIES=['grid_voltage', 'temperature']
I end up with:
['grid_voltage', 'grid_frequency', 'temperature', 'operating_status', 'alarm_code', 'alarm_count', 'link_status', ["'grid_voltage'"]["'temperature'"]]
Description
I wanted to overload the MI_ENTITIES and PORT_ENTITIES by setting environment variables. Expecting the environment variables to replace the default. But it seems that the argument parser appends the environment variables to the default instead.
So from setting the environment variable: MI_ENTITIES=['grid_voltage', 'temperature']
I end up with: ['grid_voltage', 'grid_frequency', 'temperature', 'operating_status', 'alarm_code', 'alarm_count', 'link_status', ["'grid_voltage'"]["'temperature'"]]
Is this a bug, or am I not doing this correctly?