def toggleDisabled(self):
        # Toggle disabled.
        newFaceID = self.getCurrentFace().getFaceID() ^ self.DISABLED_ATTRIBUTE

        # Remove hovering.
        newFaceID &= ~self.HOVERING_ATTRIBUTE

        # Sets the current face.
        self.setCurrentFaceFromID(newFaceID)
Setup the aREST binary sensor.
dataset/ETHPy150Open anandology/pyjamas/library/pyjamas/ui/CustomButton.py/CustomButton.toggleDisabled--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/arest.py/setup_platform