improve device_types.get
Merge branch '0.4-candidate' of github.com:domogik/domogik into 0.4-candidate