Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
Update misc.py (#363)
Browse files Browse the repository at this point in the history
* Update misc.py

Added support for Wall Mounted Switch WRCC2

* Update misc.py

* Update misc.py

Starting to feel a bit stupid now, but now it should be correct
  • Loading branch information
Remko76 authored Dec 27, 2020
1 parent ec2ca2f commit 3e876e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyhomematic/devicetypes/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Remote(HMEvent, HelperEventRemote, HelperActionPress, HelperRssiPeer):

@property
def ELEMENT(self):
if "RC-2" in self.TYPE or "PB-2" in self.TYPE or "WRC2" in self.TYPE or "BRC2" in self.TYPE:
if "RC-2" in self.TYPE or "PB-2" in self.TYPE or "WRC2" in self.TYPE or "BRC2" in self.TYPE or "WRCC2" in self.TYPE:
return [1, 2]
if "HM-Dis-WM55" in self.TYPE or "HM-Dis-EP-WM55" in self.TYPE:
return [1, 2]
Expand Down Expand Up @@ -138,6 +138,7 @@ def ELEMENT(self):
"HMW-IO-4-FM": Remote,
"HMIP-WRC2": RemoteBatteryIP,
"HmIP-WRC2": RemoteBatteryIP,
"HmIP-WRCC2": RemoteBatteryIP,
"HmIP-BRC2": Remote,
"HmIP-WRC6": RemoteBatteryIP,
"HmIP-WRCD": RemoteBatteryIP,
Expand Down

0 comments on commit 3e876e0

Please sign in to comment.