'Return the state.'

@property
def state(self):

    state = None
    if (self.capability == 'humidity'):
        if (self.wink.state() is not None):
            state = round(self.wink.state())
    elif (self.capability == 'temperature'):
        if (self.wink.state() is not None):
            state = round(self.wink.state(), 1)
    elif (self.capability == 'balance'):
        if (self.wink.state() is not None):
            state = round((self.wink.state() / 100), 2)
    elif (self.capability == 'proximity'):
        if (self.wink.state() is not None):
            state = self.wink.state()
    else:
        state = self.wink.state()
    return state
