fixed a small bug in get_device
Merge branch 'master' of github.com:domogik/domogik