platypush/plugins/zwave/__init__.py
def toggle(self, device: str, *args, **kwargs):
        """
        Toggle a switch on a device.

        :param device: ``id_on_network`` of the value to be toggled.
        """
        # noinspection PyUnresolvedReferences
        switches = self.get_switches().output
        assert device in switches, 'No such id_on_network associated to a switch: {}'.format(device)
        data = switches[device]['data']
        return self.set_value(data=not data, id_on_network=device)

        Toggle a switch on a device.

        :param device: ``id_on_network`` of the value to be toggled.
        
Toggle a switch on a device.
Toggle a switch on a device .
def toggle(self, device: str, *args, **kwargs):
        switches = self.get_switches().output
        assert device in switches, 'No such id_on_network associated to a switch: {}'.format(device)
        data = switches[device]['data']
        return self.set_value(data=not data, id_on_network=device)
def toggle ( self , device : str , * args , ** kwargs ) : switches = self . get_switches ( ) . output assert device in switches , 'No such id_on_network associated to a switch: {}' . format ( device ) data = switches [ device ] [ 'data' ] return self . set_value ( data = not data , id_on_network = device )
Toggle a switch on a device.
Toggle a switch on a device .
"""
        Toggle a switch on a device.

        :param device: ``id_on_network`` of the value to be toggled.
        """ # noinspection PyUnresolvedReferences
self
device
str
``id_on_network`` of the value to be toggled.
` ` id_on_network ` ` of the value to be toggled .