mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fixed minor feature-detection bug with incomplet configuration
This commit is contained in:
parent
67a04c2a0e
commit
dfe1b8d934
@ -89,7 +89,7 @@ class HMBinarySensor(homematic.HMDevice, BinarySensorDevice):
|
||||
return None
|
||||
|
||||
# If state is MOTION (RemoteMotion works only)
|
||||
if self._state in "MOTION":
|
||||
if self._state == "MOTION":
|
||||
return "motion"
|
||||
return SENSOR_TYPES_CLASS.get(self._hmdevice.__class__.__name__, None)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user