mmattel / EET-Solmate

Integrate EET SolMate with Homeassistant using MQTT (read AND write!)
Apache License 2.0
8 stars 1 forks source link

Fix OS based envvar handling with respect to name casing #51

Closed mmattel closed 5 months ago

mmattel commented 5 months ago

As preperation containerizing for HA (and as a general bugfix):

When using envvars from the OS, these are ALWAYS uppercase, we use lowercase. This is important when using a containerized setup and you hand over the config via envvars.

Note that os.environ returns all available envvars from the OS/session. If you query them compared to the list of config key provided by the .env file, the list is much bigger.

I will not publish this as a bugfix release individually, except other stuff may pop up or on special request.