dlarrick / hass-kumo

Home Assistant module interfacing with Mitsubishi mini-split units
MIT License
97 stars 21 forks source link

Add sample files for config flow #20

Closed omriasta closed 4 years ago

omriasta commented 4 years ago

This is extremely first draft and definitely does not work as you will need to finish the rest of the tests in config_flow.py and then modify init.py to match it. The only work I did was to setup the form to input parameters (user, pass, prefer cache and the 2 timeout values). I did not setup the storage of config entries or the authentication process to validate the credentials.

omriasta commented 4 years ago

I was able to get a working config flow. It's pretty shaky, and doesn't give errors if the device can't be contacted but it is working. Not sure if you want me to create a new PR or update this one. I have the code here https://github.com/omriasta/hass-kumo/tree/configflow

dlarrick commented 4 years ago

Hey, that's great! I may have a chance to look at it this weekend ... no promises. It doesn't matter to me if it's a new or updated PR, but you will need to resolve conflicts (update your branch to be based off latest master) either way.

omriasta commented 4 years ago

Yep, I'll clean it up a bit since there is a lot of commented out junk and I can probably look more into adding all the required unload methods....

omriasta commented 4 years ago

Closing since have working version