Fix for shelly 1.0
Merge pull request #22 from hamishmack/master

Fixes for shelly 1.0