Skip to content

Commit

Permalink
feat: Add support for newer switch (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartenWibom authored and marvinroger committed Dec 17, 2017
1 parent 03d2020 commit 528d6f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class Gateway extends events.EventEmitter {
subdevice = new Magnet({ sid })
break
case 'switch':
subdevice = new Switch({ sid })
case 'sensor_switch.aq2':
subdevice = new Switch({ sid })
break
case 'motion':
case 'sensor_motion.aq2':
Expand Down

0 comments on commit 528d6f7

Please sign in to comment.