sburke781 / hubitat

Hubitat apps and device drivers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MELCloud - Language Changed in Android App

sburke781 opened this issue · comments

@mikkomattip reported in a private message in November 2020 that the language in the MELCloud Android App was being changed from Finnish to Swedish. Jasper Van Leeuwen has since submitted a pull request with an update to the authentication method in the parent driver, identifying that the language passed in the API call is what adjusts the language. Jasper changed this to pass in English, but I would like to make this more flexible and want to look at options to either not pass it in, detect it in some way automatically, or allow a user to configure it.

I was working on the Kumo Cloud driver earlier today and noticed the login call for that does not pass in a language option, at least based on the Python script I used as a starting point. Hopefully this will be an option here...

I have updated the parent driver to include a language selector with a fixed list of languages based on those provided by Jasper. I have left the updated code on it's own branch for now and requested HE users on the community thread to perform testing.

https://community.hubitat.com/t/anyone-using-mitsubishi-wifi-controllers-apps-melcloud-in-europe/45757/105?u=sburke781