platypush/plugins/zwave/mqtt/__init__.py
def replace_failed_node(self, node_id: Optional[int] = None, node_name: Optional[str] = None, **kwargs):
        """
        Replace a failed node on the network.

        :param node_id: Filter by node_id.
        :param node_name: Filter by node name.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        """
        if node_name:
            node_id = (self._get_node(node_name=node_name) or {}).get('node_id')

        assert node_id is not None, f'No such node_id: {node_id}'
        self._api_request('replaceFailedNode', node_id, **kwargs)

        Replace a failed node on the network.

        :param node_id: Filter by node_id.
        :param node_name: Filter by node name.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        
Replace a failed node on the network.
Replace a failed node on the network .
def replace_failed_node(self, node_id: Optional[int] = None, node_name: Optional[str] = None, **kwargs):
        if node_name:
            node_id = (self._get_node(node_name=node_name) or {}).get('node_id')
        assert node_id is not None, f'No such node_id: {node_id}'
        self._api_request('replaceFailedNode', node_id, **kwargs)
def replace_failed_node ( self , node_id : Optional [ int ] = None , node_name : Optional [ str ] = None , ** kwargs ) : if node_name : node_id = ( self . _get_node ( node_name = node_name ) or { } ) . get ( 'node_id' ) assert node_id is not None , f'No such node_id: {node_id}' self . _api_request ( 'replaceFailedNode' , node_id , ** kwargs )
Replace a failed node on the network.
Replace a failed node on the network .
"""
        Replace a failed node on the network.

        :param node_id: Filter by node_id.
        :param node_name: Filter by node name.
        :param kwargs: Extra arguments to be passed to :meth:`platypush.plugins.mqtt.MqttPlugin.publish``
            (default: query the default configured device).
        """
self
node_id
Optional[int]
Filter by node_id.
Filter by node_id .
node_name
Optional[str]
Filter by node name.
Filter by node name .
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 ) .