platypush/plugins/switchbot/__init__.py
def off(self, device: str, **kwargs):
        """
        Send a turn-off command to a device

        :param device: Device name or ID.
        """
        device = self._get_device(device)
        return self._run('post', 'commands', device=device, json={'command': 'turnOff'})

        Send a turn-off command to a device

        :param device: Device name or ID.
        
Send a turn-off command to a device
Send a turn - off command to a device
def off(self, device: str, **kwargs):
        device = self._get_device(device)
        return self._run('post', 'commands', device=device, json={'command': 'turnOff'})
def off ( self , device : str , ** kwargs ) : device = self . _get_device ( device ) return self . _run ( 'post' , 'commands' , device = device , json = { 'command' : 'turnOff' } )
Send a turn-off command to a device
Send a turn - off command to a device
"""
        Send a turn-off command to a device

        :param device: Device name or ID.
        """
self
device
str
Device name or ID.
Device name or ID .