'Initialize the XiaomiMotionSensor.'

def __init__(self, device, hass, xiaomi_hub):

    self._hass = hass
    self._no_motion_since = 0
    XiaomiBinarySensor.__init__(self, device, 'Motion    Sensor', xiaomi_hub, 'status', 'motion')
