platypush/plugins/zigbee/mqtt/__init__.py
def device_whitelist(self, device: str, **kwargs):
        """
        Whitelist a device on the network. Note: once at least a device is whitelisted, all the other non-whitelisted
        devices will be removed from the network.

        :param device: Display name of the device.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        """
        return self._parse_response(
            self.publish(topic=self._topic('bridge/request/device/whitelist'),
                         reply_topic=self._topic('bridge/response/device/whitelist'),
                         msg={'id': device},
                         **self._mqtt_args(**kwargs)))

        Whitelist a device on the network. Note: once at least a device is whitelisted, all the other non-whitelisted
        devices will be removed from the network.

        :param device: Display name of the device.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        
Whitelist a device on the network. Note: once at least a device is whitelisted, all the other non-whitelisted
devices will be removed from the network.
Whitelist a device on the network . Note : once at least a device is whitelisted all the other non - whitelisted devices will be removed from the network .
def device_whitelist(self, device: str, **kwargs):
        return self._parse_response(
            self.publish(topic=self._topic('bridge/request/device/whitelist'),
                         reply_topic=self._topic('bridge/response/device/whitelist'),
                         msg={'id': device},
                         **self._mqtt_args(**kwargs)))
def device_whitelist ( self , device : str , ** kwargs ) : return self . _parse_response ( self . publish ( topic = self . _topic ( 'bridge/request/device/whitelist' ) , reply_topic = self . _topic ( 'bridge/response/device/whitelist' ) , msg = { 'id' : device } , ** self . _mqtt_args ( ** kwargs ) ) )
Whitelist a device on the network.
Whitelist a device on the network .
"""
        Whitelist a device on the network. Note: once at least a device is whitelisted, all the other non-whitelisted
        devices will be removed from the network.

        :param device: Display name of the device.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        """
self
device
str
Display name of the device.
Display name of the device .
kwargs
Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
(default: query the default configured device).
Extra arguments to be passed to : meth : ` platypush . plugins . mqtt . MqttPlugin . publish ` ` ( default : query the default configured device ) .