Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
#80 Add Raspbee devices as DimmerAccessory for now
Browse files Browse the repository at this point in the history
  • Loading branch information
michbeck100 committed Jul 4, 2019
1 parent 26dfd78 commit b4e6efa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hap.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ module.exports = (env) =>
'tradfridimmer-dimmer': DimmerAccessory
'tradfridimmer-rgb': DimmerAccessory
'tradfridimmer-temp': DimmerAccessory
'raspbee-dimmer': DimmerAccessory
'raspbee-ct': DimmerAccessory
'raspbee-rgb': DimmerAccessory
}

accessories: {}
Expand Down Expand Up @@ -126,7 +129,7 @@ module.exports = (env) =>
newAccessories.push new @knownTemplates[device.template](device, b)
return newAccessories
#legacy handling to catch ButtonDevices with no button
if device.template is "buttons" and device.config.buttons.length < 1
if device.template is "buttons" and device.config.buttons.length < 1
return newAccessories
#all other devices go here
newAccessories.push new @knownTemplates[device.template](device)
Expand Down

0 comments on commit b4e6efa

Please sign in to comment.