platypush/plugins/switch/wemo/__init__.py
def switches(self) -> List[dict]:
        """
        Get the list of available devices
        :returns: The list of devices.

            .. code-block:: json

                [
                    {
                        "ip": "192.168.1.123",
                        "name": "Switch 1",
                        "on": true
                    },
                    {
                        "ip": "192.168.1.124",
                        "name": "Switch 2",
                        "on": false
                    }
                ]

        """

        return [
                self.status(device).output
                for device in self._devices.values()
        ]

        Get the list of available devices
        :returns: The list of devices.

            .. code-block:: json

                [
                    {
                        "ip": "192.168.1.123",
                        "name": "Switch 1",
                        "on": true
                    },
                    {
                        "ip": "192.168.1.124",
                        "name": "Switch 2",
                        "on": false
                    }
                ]

        
Get the list of available devices
Get the list of available devices
def switches(self) -> List[dict]:
        return [
                self.status(device).output
                for device in self._devices.values()
        ]
def switches ( self ) -> List [ dict ] : return [ self . status ( device ) . output for device in self . _devices . values ( ) ]
Get the list of available devices
Get the list of available devices
"""
        Get the list of available devices
        :returns: The list of devices.

            .. code-block:: json

                [
                    {
                        "ip": "192.168.1.123",
                        "name": "Switch 1",
                        "on": true
                    },
                    {
                        "ip": "192.168.1.124",
                        "name": "Switch 2",
                        "on": false
                    }
                ]

        """
The list of devices.
code-block:: json


The list of devices . code - block :: json
self