Skip to content

Commit

Permalink
Update domoticz.py
Browse files Browse the repository at this point in the history
Add Lighting 3 and Lighting 4
  • Loading branch information
DewGew authored Dec 29, 2023
1 parent 0bf2b9c commit 808ffbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/domoticz.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def getDomain(device):
devs = device["Type"].replace(" ", "")
devs = devs.replace("+", "")
return devs
elif device["Type"] in ['Light/Switch', 'Lighting 1', 'Lighting 2', 'Lighting 5', 'RFY', 'Value']:
elif device["Type"] in ['Light/Switch', 'Lighting 1', 'Lighting 2', 'Lighting 3', 'Lighting 4', 'Lighting 5', 'RFY', 'Value']:
if device["Type"] == 'Value' and device.get('SwitchType') is None:
return None
devs = device.get('SwitchType')
Expand Down

0 comments on commit 808ffbe

Please sign in to comment.