WebThingsIO / thing-url-adapter

Proxy adapter for Web Thing API endpoints
Mozilla Public License 2.0
21 stars 18 forks source link

Entering the URL for a thing already in the options breaks options schema #104

Open freaktechnik opened 3 years ago

freaktechnik commented 3 years ago

I have one thing on my network at http://optoma-hd131xe.local:8888. The first time I enter the URL into the add by URL form, all is well. However, if I remove the device and want to re-add it, I will have to re-enter the URL due to how removing things works. However, the entry in the config for the adapter still exists. When I then add the device instead of adding another valid entry (so with the authentication info and all that), the adapter instead just adds a string with the URL to the things config array, breaking the config. Arguably it shouldn't even by changing the config at all, since the thing is already in the config.