platypush/plugins/switchbot/__init__.py
def press(self, device: str):
        """
        Send a press-button command to a device.

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

        Send a press-button command to a device.

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

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