def unexpected_disconnect(self, conn_or_internal_id):
        """Notify that there was an unexpected disconnection of the device.

        Any in progress operations are canceled cleanly and the device is transitioned
        to a disconnected state.

        Args:
            conn_or_internal_id (string, int): Either an integer connection id or a string
                internal_id
        """

        data = {
            'id': conn_or_internal_id
        }

        action = ConnectionAction('force_disconnect', data, sync=False)
        self._actions.put(action)
def unexpected_disconnect ( self , conn_or_internal_id ) : data = { 'id' : conn_or_internal_id } action = ConnectionAction ( 'force_disconnect' , data , sync = False ) self . _actions . put ( action )
Notify that there was an unexpected disconnection of the device.

        Any in progress operations are canceled cleanly and the device is transitioned
        to a disconnected state.

        Args:
            conn_or_internal_id (string, int): Either an integer connection id or a string
                internal_id