elif self.capability == "motion":
return self.wink.motion_boolean()
else:
return self.wink.state()
@property
def sensor_class(self):
Return the class of this sensor, from SENSOR_CLASSES.
After Change
elif self.capability == "presence":
state = self.wink.presence_boolean()
else:
state = self.wink.state()
return state
@property