Save existing attr values when changing device type back and forth
split and fixed from !35 (closed).
I threw a few unrelated changes in that I noticed while working on this.
split and fixed from !35 (closed).
I threw a few unrelated changes in that I noticed while working on this.