'Initialize the Wink binary sensor.'

def __init__(self, wink, hass):

    super().__init__(wink, hass)
    if hasattr(self.wink, 'unit'):
        self._unit_of_measurement = self.wink.unit()
    else:
        self._unit_of_measurement = None
    if hasattr(self.wink, 'capability'):
        self.capability = self.wink.capability()
    else:
        self.capability = None
