Skip to content

Commit

Permalink
Merge pull request #16 from NathanMagnus/AddCODetectorMapping
Browse files Browse the repository at this point in the history
Add co detector mapping
  • Loading branch information
roopesh authored Jul 8, 2021
2 parents 583f30d + d6c07f8 commit d3d9835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/ad-qolsys/qolsys_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ def __device_class_mapping__(self, device_class):
"SmokeDetector": "smoke",
"GlassBreak": "safety",
"Motion": "motion",
"Water":"moisture"
"Water":"moisture",
"CODetector": "gas"
}
if device_class in mapping:
return mapping[device_class]
Expand Down

0 comments on commit d3d9835

Please sign in to comment.